OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bool ShouldAssignSiteForURL(const GURL& url); | 107 bool ShouldAssignSiteForURL(const GURL& url); |
108 | 108 |
109 void CheckWebUIRendererDoesNotDisplayNormalURL( | 109 void CheckWebUIRendererDoesNotDisplayNormalURL( |
110 RenderFrameHostImpl* render_frame_host, | 110 RenderFrameHostImpl* render_frame_host, |
111 const GURL& url); | 111 const GURL& url); |
112 | 112 |
113 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it | 113 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it |
114 // to execute the beforeUnload event. Otherwise, the navigation request will | 114 // to execute the beforeUnload event. Otherwise, the navigation request will |
115 // be started. | 115 // be started. |
116 void RequestNavigation(FrameTreeNode* frame_tree_node, | 116 void RequestNavigation(FrameTreeNode* frame_tree_node, |
| 117 const GURL& dest_url, |
| 118 const Referrer& dest_referrer, |
117 const FrameNavigationEntry& frame_entry, | 119 const FrameNavigationEntry& frame_entry, |
118 const NavigationEntryImpl& entry, | 120 const NavigationEntryImpl& entry, |
119 NavigationController::ReloadType reload_type, | 121 NavigationController::ReloadType reload_type, |
120 bool is_same_document_history_load, | 122 bool is_same_document_history_load, |
121 base::TimeTicks navigation_start); | 123 base::TimeTicks navigation_start); |
122 | 124 |
123 void RecordNavigationMetrics( | 125 void RecordNavigationMetrics( |
124 const LoadCommittedDetails& details, | 126 const LoadCommittedDetails& details, |
125 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 127 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
126 SiteInstance* site_instance); | 128 SiteInstance* site_instance); |
(...skipping 15 matching lines...) Expand all Loading... |
142 NavigatorDelegate* delegate_; | 144 NavigatorDelegate* delegate_; |
143 | 145 |
144 scoped_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; | 146 scoped_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; |
145 | 147 |
146 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 148 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
147 }; | 149 }; |
148 | 150 |
149 } // namespace content | 151 } // namespace content |
150 | 152 |
151 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 153 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
OLD | NEW |