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

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

Issue 123133006: Expose a cachePolicy parameter to loadHistoryItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
Index: Source/core/loader/HistoryController.h
diff --git a/Source/core/loader/HistoryController.h b/Source/core/loader/HistoryController.h
index 9c28ab7b382487843ba50b2a26039c8d1407f747..3d067b2e5653d2b42f699e949e1c93d5d382d5d1 100644
--- a/Source/core/loader/HistoryController.h
+++ b/Source/core/loader/HistoryController.h
@@ -32,6 +32,7 @@
#include "core/history/HistoryItem.h"
#include "core/loader/FrameLoaderTypes.h"
+#include "platform/network/ResourceRequest.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/RefPtr.h"
@@ -138,7 +139,7 @@ public:
// Should only be called by embedder. To request a back/forward
// navigation, call FrameLoaderClient::navigateBackForward().
- void goToItem(HistoryItem*);
+ void goToItem(HistoryItem*, ResourceRequestCachePolicy);
void updateBackForwardListForFragmentScroll(Frame*, HistoryItem*);
void updateForCommit(Frame*, HistoryItem*, HistoryCommitType);
@@ -153,7 +154,7 @@ public:
void setDefersLoading(bool);
private:
- void goToEntry(PassOwnPtr<HistoryEntry>);
+ void goToEntry(PassOwnPtr<HistoryEntry>, ResourceRequestCachePolicy);
void recursiveGoToEntry(Frame*);
void updateForInitialLoadInChildFrame(Frame*, HistoryItem*);
@@ -171,6 +172,7 @@ private:
bool m_defersLoading;
RefPtr<HistoryItem> m_deferredItem;
+ ResourceRequestCachePolicy m_deferredCachePolicy;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698