Index: content/browser/frame_host/navigation_handle_impl.h |
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h |
index ed0973912465a49bba5749c91f7605274ab4a8ef..5f787e2ba68f7d14e14444e5b872db4638f0ae8a 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.h |
+++ b/content/browser/frame_host/navigation_handle_impl.h |
@@ -380,6 +380,15 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
source_location_ = source_location; |
} |
+ // PlzNavigate |
+ // The ID of the RenderProcessHost we expect the navigation to commit in. This |
+ // is used to inform the RenderProcessHost to expect a navigation to the url |
+ // we're navigating to. If |should_update_on_redirects| is true, we will |
+ // update the RenderProcessHost when encountering redirects, otherwise we will |
+ // just inform it to stop expecting a navigation. |
Charlie Reis
2017/05/15 03:41:52
The should_update_on_redirects parameter seems kin
clamy
2017/05/16 14:50:45
I have removed this part of the patch. For now, I'
|
+ void SetSpeculativeProcessID(int render_process_host_id, |
+ bool should_update_on_redirects); |
+ |
private: |
friend class NavigationHandleImplTest; |
@@ -561,6 +570,16 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
// navigations initiated by Javascript. |
SourceLocation source_location_; |
+ // PlzNavigate |
+ // Used to inform a RenderProcessHost that we expect this navigation to commit |
+ // in it. |
+ int speculative_render_process_host_id_; |
+ |
+ // PlzNavigate |
+ // Whether we should inform the RenderProcessHost to expect a new navigation |
+ // when this navigation is redirected. |
+ bool should_inform_process_on_redirects_; |
+ |
base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |