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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/browser/frame_host/navigation_handle_impl.h" | 10 #include "content/browser/frame_host/navigation_handle_impl.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 bool proceed) {} | 150 bool proceed) {} |
151 | 151 |
152 // PlzNavigate | 152 // PlzNavigate |
153 // Used to start a new renderer-initiated navigation, following a | 153 // Used to start a new renderer-initiated navigation, following a |
154 // BeginNavigation IPC from the renderer. | 154 // BeginNavigation IPC from the renderer. |
155 virtual void OnBeginNavigation(FrameTreeNode* frame_tree_node, | 155 virtual void OnBeginNavigation(FrameTreeNode* frame_tree_node, |
156 const CommonNavigationParams& common_params, | 156 const CommonNavigationParams& common_params, |
157 const BeginNavigationParams& begin_params); | 157 const BeginNavigationParams& begin_params); |
158 | 158 |
159 // PlzNavigate | 159 // PlzNavigate |
| 160 // Used to abort an ongoing renderer-initiated navigation. |
| 161 virtual void OnAbortNavigation(FrameTreeNode* frame_tree_node) {} |
| 162 |
| 163 // PlzNavigate |
160 // Cancel a NavigationRequest for |frame_tree_node|. Called when | 164 // Cancel a NavigationRequest for |frame_tree_node|. Called when |
161 // |frame_tree_node| is destroyed. | 165 // |frame_tree_node| is destroyed. |
162 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {} | 166 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {} |
163 | 167 |
164 // Called when the network stack started handling the navigation request | 168 // Called when the network stack started handling the navigation request |
165 // so that the |timestamp| when it happened can be recorded into an histogram. | 169 // so that the |timestamp| when it happened can be recorded into an histogram. |
166 // The |url| is used to verify we're tracking the correct navigation. | 170 // The |url| is used to verify we're tracking the correct navigation. |
167 // TODO(carlosk): once PlzNavigate is the only navigation implementation | 171 // TODO(carlosk): once PlzNavigate is the only navigation implementation |
168 // remove the URL parameter and rename this method to better suit its naming | 172 // remove the URL parameter and rename this method to better suit its naming |
169 // conventions. | 173 // conventions. |
(...skipping 11 matching lines...) Expand all Loading... |
181 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} | 185 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} |
182 | 186 |
183 protected: | 187 protected: |
184 friend class base::RefCounted<Navigator>; | 188 friend class base::RefCounted<Navigator>; |
185 virtual ~Navigator() {} | 189 virtual ~Navigator() {} |
186 }; | 190 }; |
187 | 191 |
188 } // namespace content | 192 } // namespace content |
189 | 193 |
190 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 194 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |