| 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 12 matching lines...) Expand all Loading... |
| 23 #include "content/public/browser/ssl_status.h" | 23 #include "content/public/browser/ssl_status.h" |
| 24 #include "content/public/common/request_context_type.h" | 24 #include "content/public/common/request_context_type.h" |
| 25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 26 | 26 |
| 27 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 27 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 class NavigationUIData; | 31 class NavigationUIData; |
| 32 class NavigatorDelegate; | 32 class NavigatorDelegate; |
| 33 class ResourceMessageFilter; |
| 33 class ResourceRequestBodyImpl; | 34 class ResourceRequestBodyImpl; |
| 34 class ServiceWorkerContextWrapper; | 35 class ServiceWorkerContextWrapper; |
| 35 class ServiceWorkerNavigationHandle; | 36 class ServiceWorkerNavigationHandle; |
| 36 | 37 |
| 37 // This class keeps track of a single navigation. It is created upon receipt of | 38 // This class keeps track of a single navigation. It is created upon receipt of |
| 38 // a DidStartProvisionalLoad IPC in a RenderFrameHost. The RenderFrameHost owns | 39 // a DidStartProvisionalLoad IPC in a RenderFrameHost. The RenderFrameHost owns |
| 39 // the newly created NavigationHandleImpl as long as the navigation is ongoing. | 40 // the newly created NavigationHandleImpl as long as the navigation is ongoing. |
| 40 // The NavigationHandleImpl in the RenderFrameHost will be reset when the | 41 // The NavigationHandleImpl in the RenderFrameHost will be reset when the |
| 41 // navigation stops, that is if one of the following events happen: | 42 // navigation stops, that is if one of the following events happen: |
| 42 // - The RenderFrameHost receives a DidStartProvisionalLoad IPC for a new | 43 // - The RenderFrameHost receives a DidStartProvisionalLoad IPC for a new |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 180 |
| 180 // Returns the POST body associated with this navigation. This will be | 181 // Returns the POST body associated with this navigation. This will be |
| 181 // null for GET and/or other non-POST requests (or if a response to a POST | 182 // null for GET and/or other non-POST requests (or if a response to a POST |
| 182 // request was a redirect that changed the method to GET - for example 302). | 183 // request was a redirect that changed the method to GET - for example 302). |
| 183 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body() const { | 184 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body() const { |
| 184 return resource_request_body_; | 185 return resource_request_body_; |
| 185 } | 186 } |
| 186 | 187 |
| 187 // PlzNavigate | 188 // PlzNavigate |
| 188 void InitServiceWorkerHandle( | 189 void InitServiceWorkerHandle( |
| 189 ServiceWorkerContextWrapper* service_worker_context); | 190 ServiceWorkerContextWrapper* service_worker_context, |
| 191 ResourceMessageFilter* resource_message_filter); |
| 190 ServiceWorkerNavigationHandle* service_worker_handle() const { | 192 ServiceWorkerNavigationHandle* service_worker_handle() const { |
| 191 return service_worker_handle_.get(); | 193 return service_worker_handle_.get(); |
| 192 } | 194 } |
| 193 | 195 |
| 194 typedef base::Callback<void(NavigationThrottle::ThrottleCheckResult)> | 196 typedef base::Callback<void(NavigationThrottle::ThrottleCheckResult)> |
| 195 ThrottleChecksFinishedCallback; | 197 ThrottleChecksFinishedCallback; |
| 196 | 198 |
| 197 // Called when the URLRequest will start in the network stack. |callback| | 199 // Called when the URLRequest will start in the network stack. |callback| |
| 198 // will be called when all throttle checks have completed. This will allow | 200 // will be called when all throttle checks have completed. This will allow |
| 199 // the caller to cancel the navigation or let it proceed. | 201 // the caller to cancel the navigation or let it proceed. |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 bool started_from_context_menu_; | 427 bool started_from_context_menu_; |
| 426 | 428 |
| 427 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; | 429 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; |
| 428 | 430 |
| 429 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 431 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
| 430 }; | 432 }; |
| 431 | 433 |
| 432 } // namespace content | 434 } // namespace content |
| 433 | 435 |
| 434 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 436 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| OLD | NEW |