| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // the request should cancel. | 263 // the request should cancel. |
| 263 bool HasSufficientResourcesForRequest(net::URLRequest* request); | 264 bool HasSufficientResourcesForRequest(net::URLRequest* request); |
| 264 | 265 |
| 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(ResourceContext* resource_context, | 273 void BeginNavigationRequest( |
| 273 const NavigationRequestInfo& info, | 274 ResourceContext* resource_context, |
| 274 NavigationURLLoaderImplCore* loader); | 275 const NavigationRequestInfo& info, |
| 276 std::unique_ptr<NavigationUIData> navigation_ui_data, |
| 277 NavigationURLLoaderImplCore* loader); |
| 275 | 278 |
| 276 int num_in_flight_requests_for_testing() const { | 279 int num_in_flight_requests_for_testing() const { |
| 277 return num_in_flight_requests_; | 280 return num_in_flight_requests_; |
| 278 } | 281 } |
| 279 | 282 |
| 280 // Turns on stale-while-revalidate support, regardless of command-line flags | 283 // Turns on stale-while-revalidate support, regardless of command-line flags |
| 281 // or experiment status. For unit tests only. | 284 // or experiment status. For unit tests only. |
| 282 void EnableStaleWhileRevalidateForTesting(); | 285 void EnableStaleWhileRevalidateForTesting(); |
| 283 | 286 |
| 284 // Sets the LoaderDelegate, which must outlive this object. Ownership is not | 287 // Sets the LoaderDelegate, which must outlive this object. Ownership is not |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 | 746 |
| 744 // Points to the registered download handler intercept. | 747 // Points to the registered download handler intercept. |
| 745 CreateDownloadHandlerIntercept create_download_handler_intercept_; | 748 CreateDownloadHandlerIntercept create_download_handler_intercept_; |
| 746 | 749 |
| 747 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 750 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 748 }; | 751 }; |
| 749 | 752 |
| 750 } // namespace content | 753 } // namespace content |
| 751 | 754 |
| 752 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 755 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |