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/navigator_delegate.h" | 10 #include "content/browser/frame_host/navigator_delegate.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Called after receiving a BeforeUnloadACK IPC from the renderer. If | 135 // Called after receiving a BeforeUnloadACK IPC from the renderer. If |
136 // |frame_tree_node| has a NavigationRequest waiting for the renderer | 136 // |frame_tree_node| has a NavigationRequest waiting for the renderer |
137 // response, then the request is either started or canceled, depending on the | 137 // response, then the request is either started or canceled, depending on the |
138 // value of |proceed|. | 138 // value of |proceed|. |
139 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, | 139 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, |
140 bool proceed) {} | 140 bool proceed) {} |
141 | 141 |
142 // PlzNavigate | 142 // PlzNavigate |
143 // Used to start a new renderer-initiated navigation, following a | 143 // Used to start a new renderer-initiated navigation, following a |
144 // BeginNavigation IPC from the renderer. | 144 // BeginNavigation IPC from the renderer. |
145 virtual void OnBeginNavigation( | 145 virtual void OnBeginNavigation(FrameTreeNode* frame_tree_node, |
146 FrameTreeNode* frame_tree_node, | 146 const CommonNavigationParams& common_params, |
147 const CommonNavigationParams& common_params, | 147 const BeginNavigationParams& begin_params); |
148 const BeginNavigationParams& begin_params, | |
149 scoped_refptr<ResourceRequestBody> body); | |
150 | 148 |
151 // PlzNavigate | 149 // PlzNavigate |
152 // Called when a NavigationRequest for |frame_tree_node| failed. An | 150 // Called when a NavigationRequest for |frame_tree_node| failed. An |
153 // appropriate RenderFrameHost should be selected and asked to show an error | 151 // appropriate RenderFrameHost should be selected and asked to show an error |
154 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the | 152 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the |
155 // unreachable page in cache. | 153 // unreachable page in cache. |
156 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, | 154 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, |
157 bool has_stale_copy_in_cache, | 155 bool has_stale_copy_in_cache, |
158 int error_code) {} | 156 int error_code) {} |
159 | 157 |
(...skipping 18 matching lines...) Expand all Loading... |
178 const base::TimeTicks& renderer_before_unload_end_time) {} | 176 const base::TimeTicks& renderer_before_unload_end_time) {} |
179 | 177 |
180 protected: | 178 protected: |
181 friend class base::RefCounted<Navigator>; | 179 friend class base::RefCounted<Navigator>; |
182 virtual ~Navigator() {} | 180 virtual ~Navigator() {} |
183 }; | 181 }; |
184 | 182 |
185 } // namespace content | 183 } // namespace content |
186 | 184 |
187 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 185 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |