Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(915)

Unified Diff: Source/core/loader/HistoryItem.h

Issue 239993011: Lazily generate HistoryItem's serialized form state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged to trunk Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/loader/HistoryItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/HistoryItem.h
diff --git a/Source/core/loader/HistoryItem.h b/Source/core/loader/HistoryItem.h
index 0df44dc6d10111ce99bdd731d39dd5f0d42cd405..ad4b8a3d0f5c39b92e35c1338aadbbe10dab3e10 100644
--- a/Source/core/loader/HistoryItem.h
+++ b/Source/core/loader/HistoryItem.h
@@ -36,6 +36,7 @@
namespace WebCore {
class Document;
+class DocumentState;
class FormData;
class HistoryItem;
class Image;
@@ -69,8 +70,10 @@ public:
float pageScaleFactor() const;
void setPageScaleFactor(float);
- const Vector<String>& documentState() const;
+ Vector<String> getReferencedFilePaths();
+ const Vector<String>& documentState();
void setDocumentState(const Vector<String>&);
+ void setDocumentState(DocumentState*);
void clearDocumentState();
void setURL(const KURL&);
@@ -109,7 +112,8 @@ private:
IntPoint m_scrollPoint;
float m_pageScaleFactor;
- Vector<String> m_documentState;
+ Vector<String> m_documentStateVector;
+ RefPtr<DocumentState> m_documentState;
HistoryItemVector m_children;
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/loader/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698