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

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

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Address review comments Created 4 years 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 namespace net { 47 namespace net {
48 class URLRequest; 48 class URLRequest;
49 class HttpRequestHeaders; 49 class HttpRequestHeaders;
50 } 50 }
51 51
52 namespace storage { 52 namespace storage {
53 class ShareableFileReference; 53 class ShareableFileReference;
54 } 54 }
55 55
56 namespace content { 56 namespace content {
57 class AppCacheNavigationHandleCore;
57 class AppCacheService; 58 class AppCacheService;
58 class AsyncRevalidationManager; 59 class AsyncRevalidationManager;
59 class LoaderDelegate; 60 class LoaderDelegate;
60 class NavigationURLLoaderImplCore; 61 class NavigationURLLoaderImplCore;
61 class NavigationUIData; 62 class NavigationUIData;
62 class RenderFrameHostImpl; 63 class RenderFrameHostImpl;
63 class ResourceContext; 64 class ResourceContext;
64 class ResourceDispatcherHostDelegate; 65 class ResourceDispatcherHostDelegate;
65 class ResourceLoader; 66 class ResourceLoader;
66 class ResourceHandler; 67 class ResourceHandler;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // elsewhere. 271 // elsewhere.
271 void FinishedWithResourcesForRequest(net::URLRequest* request); 272 void FinishedWithResourcesForRequest(net::URLRequest* request);
272 273
273 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the 274 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the
274 // loader to attach to the leaf resource handler. 275 // loader to attach to the leaf resource handler.
275 void BeginNavigationRequest( 276 void BeginNavigationRequest(
276 ResourceContext* resource_context, 277 ResourceContext* resource_context,
277 const NavigationRequestInfo& info, 278 const NavigationRequestInfo& info,
278 std::unique_ptr<NavigationUIData> navigation_ui_data, 279 std::unique_ptr<NavigationUIData> navigation_ui_data,
279 NavigationURLLoaderImplCore* loader, 280 NavigationURLLoaderImplCore* loader,
280 ServiceWorkerNavigationHandleCore* service_worker_handle_core); 281 ServiceWorkerNavigationHandleCore* service_worker_handle_core,
282 AppCacheNavigationHandleCore* appcache_handle_core);
281 283
282 int num_in_flight_requests_for_testing() const { 284 int num_in_flight_requests_for_testing() const {
283 return num_in_flight_requests_; 285 return num_in_flight_requests_;
284 } 286 }
285 287
286 // Turns on stale-while-revalidate support, regardless of command-line flags 288 // Turns on stale-while-revalidate support, regardless of command-line flags
287 // or experiment status. For unit tests only. 289 // or experiment status. For unit tests only.
288 void EnableStaleWhileRevalidateForTesting(); 290 void EnableStaleWhileRevalidateForTesting();
289 291
290 // Sets the LoaderDelegate, which must outlive this object. Ownership is not 292 // Sets the LoaderDelegate, which must outlive this object. Ownership is not
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 782
781 // Points to the registered download handler intercept. 783 // Points to the registered download handler intercept.
782 CreateDownloadHandlerIntercept create_download_handler_intercept_; 784 CreateDownloadHandlerIntercept create_download_handler_intercept_;
783 785
784 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 786 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
785 }; 787 };
786 788
787 } // namespace content 789 } // namespace content
788 790
789 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 791 #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