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

Unified Diff: public/web/WebLocalFrame.h

Issue 1156473002: Refactor FrameLoader loading interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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 | « public/web/WebFrameLoadType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebLocalFrame.h
diff --git a/public/web/WebLocalFrame.h b/public/web/WebLocalFrame.h
index 88fac0d805a58bc390c56ba4f4fb843ebd5e728b..eea1e86e88f1552ced4d2852a73fe03cfc476d22 100644
--- a/public/web/WebLocalFrame.h
+++ b/public/web/WebLocalFrame.h
@@ -6,6 +6,7 @@
#define WebLocalFrame_h
#include "WebFrame.h"
+#include "WebFrameLoadType.h"
namespace blink {
@@ -60,6 +61,24 @@ public:
// Navigation Ping --------------------------------------------------------
virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL) = 0;
+ // Navigation ----------------------------------------------------------
+
+ // Returns a WebURLRequest corresponding to the load of the WebHistoryItem.
+ virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebURLRequest::CachePolicy)
+ const = 0;
+
+ // Returns a WebURLRequest corresponding to the reload of the current
+ // HistoryItem.
+ virtual WebURLRequest requestForReload(WebFrameLoadType,
+ const WebURL& overrideURL = WebURL()) const = 0;
+
+ // Load the given URL. For history navigations, a valid WebHistoryItem
+ // should be given, as well as a WebHistoryLoadType.
+ // TODO(clamy): Remove the reload, reloadWithOverrideURL, loadHistoryItem
+ // loadRequest functions in WebFrame once RenderFrame only calls loadRequest.
+ virtual void load(const WebURLRequest&, WebFrameLoadType = WebFrameLoadType::Standard,
+ const WebHistoryItem& = WebHistoryItem(),
+ WebHistoryLoadType = WebHistoryDifferentDocumentLoad) = 0;
// Navigation State -------------------------------------------------------
« no previous file with comments | « public/web/WebFrameLoadType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698