summaryrefslogtreecommitdiff
path: root/src/history.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.h')
-rw-r--r--src/history.h12
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
44iDeclareType(MemInfo)
45
46struct 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 *);
51void add_History (iHistory *, const iString *url); 60void add_History (iHistory *, const iString *url);
52void replace_History (iHistory *, const iString *url); 61void replace_History (iHistory *, const iString *url);
53void setCachedResponse_History (iHistory *, const iGmResponse *response); 62void setCachedResponse_History (iHistory *, const iGmResponse *response);
63void setCachedDocument_History (iHistory *, iGmDocument *doc);
54iBool goBack_History (iHistory *); 64iBool goBack_History (iHistory *);
55iBool goForward_History (iHistory *); 65iBool goForward_History (iHistory *);
56iRecentUrl *recentUrl_History (iHistory *, size_t pos); 66iRecentUrl *recentUrl_History (iHistory *, size_t pos);
@@ -75,4 +85,4 @@ const iGmResponse *
75size_t cacheSize_History (const iHistory *); 85size_t cacheSize_History (const iHistory *);
76 86
77iString * debugInfo_History (const iHistory *); 87iString * debugInfo_History (const iHistory *);
78 88iMemInfo memoryUsage_History (const iHistory *);