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, |