diff options
Diffstat (limited to 'src/history.h')
-rw-r--r-- | src/history.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/history.h b/src/history.h index 164a61d6..ccc19d27 100644 --- a/src/history.h +++ b/src/history.h | |||
@@ -22,6 +22,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
22 | 22 | ||
23 | #pragma once | 23 | #pragma once |
24 | 24 | ||
25 | #include "gmdocument.h" | ||
25 | #include "gmrequest.h" | 26 | #include "gmrequest.h" |
26 | 27 | ||
27 | #include <the_Foundation/ptrarray.h> | 28 | #include <the_Foundation/ptrarray.h> |
@@ -37,6 +38,14 @@ struct Impl_RecentUrl { | |||
37 | iString url; | 38 | iString url; |
38 | float normScrollY; /* normalized to document height */ | 39 | float normScrollY; /* normalized to document height */ |
39 | iGmResponse *cachedResponse; /* kept in memory for quicker back navigation */ | 40 | iGmResponse *cachedResponse; /* kept in memory for quicker back navigation */ |
41 | iGmDocument *cachedDoc; /* cached copy of the presentation: layout and media (not serialized) */ | ||
42 | }; | ||
43 | |||
44 | iDeclareType(MemInfo) | ||
45 | |||
46 | struct Impl_MemInfo { | ||
47 | size_t cacheSize; /* number of bytes stored persistently */ | ||
48 | size_t memorySize; /* number of bytes stored in RAM */ | ||
40 | }; | 49 | }; |
41 | 50 | ||
42 | /*----------------------------------------------------------------------------------------------*/ | 51 | /*----------------------------------------------------------------------------------------------*/ |
@@ -51,6 +60,7 @@ void clear_History (iHistory *); | |||
51 | void add_History (iHistory *, const iString *url); | 60 | void add_History (iHistory *, const iString *url); |
52 | void replace_History (iHistory *, const iString *url); | 61 | void replace_History (iHistory *, const iString *url); |
53 | void setCachedResponse_History (iHistory *, const iGmResponse *response); | 62 | void setCachedResponse_History (iHistory *, const iGmResponse *response); |
63 | void setCachedDocument_History (iHistory *, iGmDocument *doc); | ||
54 | iBool goBack_History (iHistory *); | 64 | iBool goBack_History (iHistory *); |
55 | iBool goForward_History (iHistory *); | 65 | iBool goForward_History (iHistory *); |
56 | iRecentUrl *recentUrl_History (iHistory *, size_t pos); | 66 | iRecentUrl *recentUrl_History (iHistory *, size_t pos); |
@@ -75,4 +85,4 @@ const iGmResponse * | |||
75 | size_t cacheSize_History (const iHistory *); | 85 | size_t cacheSize_History (const iHistory *); |
76 | 86 | ||
77 | iString * debugInfo_History (const iHistory *); | 87 | iString * debugInfo_History (const iHistory *); |
78 | 88 | iMemInfo memoryUsage_History (const iHistory *); | |