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

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: Addressed comments Created 5 years, 7 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
« public/web/WebFrame.h ('K') | « 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..bb32ef2064fa5519e81a5b4506a9c6f7fb2d0a39 100644
--- a/public/web/WebLocalFrame.h
+++ b/public/web/WebLocalFrame.h
@@ -60,6 +60,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 -------------------------------------------------------
« public/web/WebFrame.h ('K') | « public/web/WebFrameLoadType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698