| OLD | NEW |
| 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 Loading... |
| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Called by a ResourceHandler after it has finished its request and is done | 266 // Called by a ResourceHandler after it has finished its request and is done |
| 266 // using its shared memory buffer. Frees up that file descriptor to be used | 267 // using its shared memory buffer. Frees up that file descriptor to be used |
| 267 // elsewhere. | 268 // elsewhere. |
| 268 void FinishedWithResourcesForRequest(net::URLRequest* request); | 269 void FinishedWithResourcesForRequest(net::URLRequest* request); |
| 269 | 270 |
| 270 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the | 271 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the |
| 271 // loader to attach to the leaf resource handler. | 272 // loader to attach to the leaf resource handler. |
| 272 void BeginNavigationRequest( | 273 void BeginNavigationRequest( |
| 273 ResourceContext* resource_context, | 274 ResourceContext* resource_context, |
| 274 const NavigationRequestInfo& info, | 275 const NavigationRequestInfo& info, |
| 276 std::unique_ptr<NavigationUIData> navigation_ui_data, |
| 275 NavigationURLLoaderImplCore* loader, | 277 NavigationURLLoaderImplCore* loader, |
| 276 ServiceWorkerNavigationHandleCore* service_worker_handle_core); | 278 ServiceWorkerNavigationHandleCore* service_worker_handle_core); |
| 277 | 279 |
| 278 int num_in_flight_requests_for_testing() const { | 280 int num_in_flight_requests_for_testing() const { |
| 279 return num_in_flight_requests_; | 281 return num_in_flight_requests_; |
| 280 } | 282 } |
| 281 | 283 |
| 282 // Turns on stale-while-revalidate support, regardless of command-line flags | 284 // Turns on stale-while-revalidate support, regardless of command-line flags |
| 283 // or experiment status. For unit tests only. | 285 // or experiment status. For unit tests only. |
| 284 void EnableStaleWhileRevalidateForTesting(); | 286 void EnableStaleWhileRevalidateForTesting(); |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 | 747 |
| 746 // Points to the registered download handler intercept. | 748 // Points to the registered download handler intercept. |
| 747 CreateDownloadHandlerIntercept create_download_handler_intercept_; | 749 CreateDownloadHandlerIntercept create_download_handler_intercept_; |
| 748 | 750 |
| 749 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 751 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 750 }; | 752 }; |
| 751 | 753 |
| 752 } // namespace content | 754 } // namespace content |
| 753 | 755 |
| 754 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 756 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |