| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 bool IsPost() override; | 104 bool IsPost() override; |
| 105 const Referrer& GetReferrer() override; | 105 const Referrer& GetReferrer() override; |
| 106 bool HasUserGesture() override; | 106 bool HasUserGesture() override; |
| 107 ui::PageTransition GetPageTransition() override; | 107 ui::PageTransition GetPageTransition() override; |
| 108 bool IsExternalProtocol() override; | 108 bool IsExternalProtocol() override; |
| 109 net::Error GetNetErrorCode() override; | 109 net::Error GetNetErrorCode() override; |
| 110 RenderFrameHostImpl* GetRenderFrameHost() override; | 110 RenderFrameHostImpl* GetRenderFrameHost() override; |
| 111 bool IsSamePage() override; | 111 bool IsSamePage() override; |
| 112 bool HasCommitted() override; | 112 bool HasCommitted() override; |
| 113 bool IsErrorPage() override; | 113 bool IsErrorPage() override; |
| 114 const GURL& GetPreviousURL() override; |
| 114 net::HostPortPair GetSocketAddress() override; | 115 net::HostPortPair GetSocketAddress() override; |
| 115 const net::HttpResponseHeaders* GetResponseHeaders() override; | 116 const net::HttpResponseHeaders* GetResponseHeaders() override; |
| 116 net::HttpResponseInfo::ConnectionInfo GetConnectionInfo() override; | 117 net::HttpResponseInfo::ConnectionInfo GetConnectionInfo() override; |
| 117 void Resume() override; | 118 void Resume() override; |
| 118 void CancelDeferredNavigation( | 119 void CancelDeferredNavigation( |
| 119 NavigationThrottle::ThrottleCheckResult result) override; | 120 NavigationThrottle::ThrottleCheckResult result) override; |
| 120 void RegisterThrottleForTesting( | 121 void RegisterThrottleForTesting( |
| 121 std::unique_ptr<NavigationThrottle> navigation_throttle) override; | 122 std::unique_ptr<NavigationThrottle> navigation_throttle) override; |
| 122 NavigationThrottle::ThrottleCheckResult CallWillStartRequestForTesting( | 123 NavigationThrottle::ThrottleCheckResult CallWillStartRequestForTesting( |
| 123 bool is_post, | 124 bool is_post, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Called when the navigation is ready to be committed in | 274 // Called when the navigation is ready to be committed in |
| 274 // |render_frame_host|. This will update the |state_| and inform the | 275 // |render_frame_host|. This will update the |state_| and inform the |
| 275 // delegate. | 276 // delegate. |
| 276 void ReadyToCommitNavigation(RenderFrameHostImpl* render_frame_host); | 277 void ReadyToCommitNavigation(RenderFrameHostImpl* render_frame_host); |
| 277 | 278 |
| 278 // Called when the navigation was committed in |render_frame_host|. This will | 279 // Called when the navigation was committed in |render_frame_host|. This will |
| 279 // update the |state_|. | 280 // update the |state_|. |
| 280 void DidCommitNavigation( | 281 void DidCommitNavigation( |
| 281 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 282 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 282 bool same_page, | 283 bool same_page, |
| 284 const GURL& previous_url, |
| 283 RenderFrameHostImpl* render_frame_host); | 285 RenderFrameHostImpl* render_frame_host); |
| 284 | 286 |
| 285 // Called during commit. Takes ownership of the embedder's NavigationData | 287 // Called during commit. Takes ownership of the embedder's NavigationData |
| 286 // instance. This NavigationData may have been cloned prior to being added | 288 // instance. This NavigationData may have been cloned prior to being added |
| 287 // here. | 289 // here. |
| 288 void set_navigation_data(std::unique_ptr<NavigationData> navigation_data) { | 290 void set_navigation_data(std::unique_ptr<NavigationData> navigation_data) { |
| 289 navigation_data_ = std::move(navigation_data); | 291 navigation_data_ = std::move(navigation_data); |
| 290 } | 292 } |
| 291 | 293 |
| 292 SSLStatus ssl_status() { return ssl_status_; } | 294 SSLStatus ssl_status() { return ssl_status_; } |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 456 |
| 455 // False by default unless the navigation started within a context menu. | 457 // False by default unless the navigation started within a context menu. |
| 456 bool started_from_context_menu_; | 458 bool started_from_context_menu_; |
| 457 | 459 |
| 458 // Stores the reload type, or NONE if it's not a reload. | 460 // Stores the reload type, or NONE if it's not a reload. |
| 459 ReloadType reload_type_; | 461 ReloadType reload_type_; |
| 460 | 462 |
| 461 GURL searchable_form_url_; | 463 GURL searchable_form_url_; |
| 462 std::string searchable_form_encoding_; | 464 std::string searchable_form_encoding_; |
| 463 | 465 |
| 466 GURL previous_url_; |
| 464 GURL base_url_; | 467 GURL base_url_; |
| 465 net::HostPortPair socket_address_; | 468 net::HostPortPair socket_address_; |
| 466 | 469 |
| 467 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; | 470 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; |
| 468 | 471 |
| 469 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 472 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
| 470 }; | 473 }; |
| 471 | 474 |
| 472 } // namespace content | 475 } // namespace content |
| 473 | 476 |
| 474 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 477 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| OLD | NEW |