Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2446553002: Support Service Worker NavigationPreload with PlzNavigate. (Closed)
Patch Set: remove unnecessary comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "content/browser/frame_host/frame_tree_node.h" 17 #include "content/browser/frame_host/frame_tree_node.h"
18 #include "content/browser/frame_host/render_frame_host_impl.h" 18 #include "content/browser/frame_host/render_frame_host_impl.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/common/service_worker/service_worker_types.h"
20 #include "content/public/browser/global_request_id.h" 21 #include "content/public/browser/global_request_id.h"
21 #include "content/public/browser/navigation_data.h" 22 #include "content/public/browser/navigation_data.h"
22 #include "content/public/browser/navigation_throttle.h" 23 #include "content/public/browser/navigation_throttle.h"
23 #include "content/public/browser/ssl_status.h" 24 #include "content/public/browser/ssl_status.h"
24 #include "content/public/common/request_context_type.h" 25 #include "content/public/common/request_context_type.h"
25 #include "url/gurl.h" 26 #include "url/gurl.h"
26 27
27 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 28 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
28 29
29 namespace content { 30 namespace content {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const MojoURLLoaderFactoryGetter& url_loader_factory_getter);
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 bool started_from_context_menu_; 425 bool started_from_context_menu_;
424 426
425 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 427 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
426 428
427 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 429 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
428 }; 430 };
429 431
430 } // namespace content 432 } // namespace content
431 433
432 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 434 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698