OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_NAVIGATION_HANDLE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
7 | 7 |
8 #include "content/public/browser/navigation_handle.h" | 8 #include "content/public/browser/navigation_handle.h" |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 RenderFrameHostImpl* render_frame_host, | 196 RenderFrameHostImpl* render_frame_host, |
197 scoped_refptr<net::HttpResponseHeaders> response_headers, | 197 scoped_refptr<net::HttpResponseHeaders> response_headers, |
198 const ThrottleChecksFinishedCallback& callback); | 198 const ThrottleChecksFinishedCallback& callback); |
199 | 199 |
200 // Returns the FrameTreeNode this navigation is happening in. | 200 // Returns the FrameTreeNode this navigation is happening in. |
201 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 201 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
202 | 202 |
203 // Called when the navigation is ready to be committed in | 203 // Called when the navigation is ready to be committed in |
204 // |render_frame_host|. This will update the |state_| and inform the | 204 // |render_frame_host|. This will update the |state_| and inform the |
205 // delegate. | 205 // delegate. |
206 void ReadyToCommitNavigation( | 206 void ReadyToCommitNavigation(RenderFrameHostImpl* render_frame_host); |
207 RenderFrameHostImpl* render_frame_host, | |
208 scoped_refptr<net::HttpResponseHeaders> response_headers); | |
209 | 207 |
210 // Called when the navigation was committed in |render_frame_host|. This will | 208 // Called when the navigation was committed in |render_frame_host|. This will |
211 // update the |state_|. | 209 // update the |state_|. |
212 void DidCommitNavigation( | 210 void DidCommitNavigation( |
213 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 211 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
214 bool same_page, | 212 bool same_page, |
215 RenderFrameHostImpl* render_frame_host); | 213 RenderFrameHostImpl* render_frame_host); |
216 | 214 |
217 // TODO(clamy): Remove this once enough data has been gathered for | 215 // TODO(clamy): Remove this once enough data has been gathered for |
218 // crbug.com/589365. | 216 // crbug.com/589365. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // the cause of crbug.com/589365. | 302 // the cause of crbug.com/589365. |
305 // TODO(clamy): Remove once enough data has been gathered. | 303 // TODO(clamy): Remove once enough data has been gathered. |
306 bool is_in_commit_; | 304 bool is_in_commit_; |
307 | 305 |
308 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 306 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
309 }; | 307 }; |
310 | 308 |
311 } // namespace content | 309 } // namespace content |
312 | 310 |
313 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 311 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
OLD | NEW |