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

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

Issue 927213004: Accept options in history APIs to allow scroll restoration to be disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improve the test Created 5 years, 10 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 1a94d0f135a38cc499271e6712a5f034cb0efaf0..c4f80b01541e52e14aa85b9122a8e56e9b3ee16f 100644
--- a/Source/core/loader/HistoryItem.h
+++ b/Source/core/loader/HistoryItem.h
@@ -97,6 +97,9 @@ public:
void setFrameSequenceNumber(long long number) { m_frameSequenceNumber = number; }
long long frameSequenceNumber() const { return m_frameSequenceNumber; }
+ void setIsCreatedByHistoryAPI(bool isCreatedByHistoryAPI) { m_isCreatedByHistoryAPI = isCreatedByHistoryAPI; }
+ bool isCreatedByHistoryAPI() { return m_isCreatedByHistoryAPI; }
+
void setFormInfoFromRequest(const ResourceRequest&);
void setFormData(PassRefPtr<FormData>);
void setFormContentType(const AtomicString&);
@@ -135,6 +138,9 @@ private:
// one during a history navigation.
int64_t m_frameSequenceNumber;
+ // True if history item was created via JS History API
tdresser 2015/02/26 18:04:02 Add period at EOL.
+ bool m_isCreatedByHistoryAPI;
+
// Support for HTML5 History
RefPtr<SerializedScriptValue> m_stateObject;
« 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