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

Unified Diff: content/renderer/history_controller.h

Issue 1157863005: Use WebFrame::loadRequest for reloads and history navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/renderer/history_controller.h
diff --git a/content/renderer/history_controller.h b/content/renderer/history_controller.h
index 0a46eefa0d86fb96d5dbb7429cffdfccace67d71..d72cd44af1ff3c4854736ae1d3301ae2b88b81b0 100644
--- a/content/renderer/history_controller.h
+++ b/content/renderer/history_controller.h
@@ -41,13 +41,10 @@
#include "content/common/content_export.h"
#include "content/renderer/history_entry.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
+#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebHistoryCommitType.h"
#include "third_party/WebKit/public/web/WebHistoryItem.h"
-namespace blink {
-class WebFrame;
-}
-
namespace content {
class RenderFrameImpl;
class RenderViewImpl;
@@ -114,6 +111,16 @@ class CONTENT_EXPORT HistoryController {
scoped_ptr<NavigationParams> navigation_params,
blink::WebURLRequest::CachePolicy cache_policy);
+ // Returns the WebHistoryItem corresponding to |target_entry|. If no item is
Charlie Reis 2015/05/27 23:34:36 This sentence doesn't make sense, since a HistoryE
clamy 2015/05/29 14:47:01 Ah I didn't know we had this method. The only thin
+ // found, then returns an empty WebHistoryItem. Also updates load_type to
Charlie Reis 2015/05/27 23:34:36 nit: |load_type| I'm not a fan of methods that do
clamy 2015/05/29 14:47:01 I'm removing the method in the next patch set.
+ // WebFrameLoadTypeBackForward or WebFrameLoadTypeHistorySameDocument
+ // depending on the type of history navigation.
+ blink::WebHistoryItem FindItemForFrame(
Charlie Reis 2015/05/27 23:34:36 I'd like to avoid adding new code to HistoryContro
clamy 2015/05/29 14:47:01 Done.
+ scoped_ptr<HistoryEntry> target_entry,
+ RenderFrameImpl* target_frame,
+ blink::WebURLRequest::CachePolicy cache_policy,
+ blink::WebFrame::WebFrameLoadType* load_type);
+
void UpdateForCommit(RenderFrameImpl* frame,
const blink::WebHistoryItem& item,
blink::WebHistoryCommitType commit_type,

Powered by Google App Engine
This is Rietveld 408576698