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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Rebase + addressed nit Created 4 years, 2 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 namespace storage { 53 namespace storage {
54 class ShareableFileReference; 54 class ShareableFileReference;
55 } 55 }
56 56
57 namespace content { 57 namespace content {
58 class AppCacheService; 58 class AppCacheService;
59 class AsyncRevalidationManager; 59 class AsyncRevalidationManager;
60 class LoaderDelegate; 60 class LoaderDelegate;
61 class NavigationURLLoaderImplCore; 61 class NavigationURLLoaderImplCore;
62 class NavigationUIData;
62 class RenderFrameHostImpl; 63 class RenderFrameHostImpl;
63 class ResourceContext; 64 class ResourceContext;
64 class ResourceDispatcherHostDelegate; 65 class ResourceDispatcherHostDelegate;
65 class ResourceHandler; 66 class ResourceHandler;
66 class ResourceMessageDelegate; 67 class ResourceMessageDelegate;
67 class ResourceMessageFilter; 68 class ResourceMessageFilter;
68 class ResourceRequestInfoImpl; 69 class ResourceRequestInfoImpl;
69 class ServiceWorkerNavigationHandleCore; 70 class ServiceWorkerNavigationHandleCore;
70 struct CommonNavigationParams; 71 struct CommonNavigationParams;
71 struct NavigationRequestInfo; 72 struct NavigationRequestInfo;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Called by a ResourceHandler after it has finished its request and is done 267 // Called by a ResourceHandler after it has finished its request and is done
267 // using its shared memory buffer. Frees up that file descriptor to be used 268 // using its shared memory buffer. Frees up that file descriptor to be used
268 // elsewhere. 269 // elsewhere.
269 void FinishedWithResourcesForRequest(net::URLRequest* request); 270 void FinishedWithResourcesForRequest(net::URLRequest* request);
270 271
271 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the 272 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the
272 // loader to attach to the leaf resource handler. 273 // loader to attach to the leaf resource handler.
273 void BeginNavigationRequest( 274 void BeginNavigationRequest(
274 ResourceContext* resource_context, 275 ResourceContext* resource_context,
275 const NavigationRequestInfo& info, 276 const NavigationRequestInfo& info,
277 std::unique_ptr<NavigationUIData> navigation_ui_data,
276 NavigationURLLoaderImplCore* loader, 278 NavigationURLLoaderImplCore* loader,
277 ServiceWorkerNavigationHandleCore* service_worker_handle_core); 279 ServiceWorkerNavigationHandleCore* service_worker_handle_core);
278 280
279 int num_in_flight_requests_for_testing() const { 281 int num_in_flight_requests_for_testing() const {
280 return num_in_flight_requests_; 282 return num_in_flight_requests_;
281 } 283 }
282 284
283 // Turns on stale-while-revalidate support, regardless of command-line flags 285 // Turns on stale-while-revalidate support, regardless of command-line flags
284 // or experiment status. For unit tests only. 286 // or experiment status. For unit tests only.
285 void EnableStaleWhileRevalidateForTesting(); 287 void EnableStaleWhileRevalidateForTesting();
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 749
748 // Points to the registered download handler intercept. 750 // Points to the registered download handler intercept.
749 CreateDownloadHandlerIntercept create_download_handler_intercept_; 751 CreateDownloadHandlerIntercept create_download_handler_intercept_;
750 752
751 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 753 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
752 }; 754 };
753 755
754 } // namespace content 756 } // namespace content
755 757
756 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 758 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader_unittest.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698