| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // using its shared memory buffer. Frees up that file descriptor to be used | 258 // using its shared memory buffer. Frees up that file descriptor to be used |
| 259 // elsewhere. | 259 // elsewhere. |
| 260 void FinishedWithResourcesForRequest(net::URLRequest* request); | 260 void FinishedWithResourcesForRequest(net::URLRequest* request); |
| 261 | 261 |
| 262 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the | 262 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the |
| 263 // loader to attach to the leaf resource handler. | 263 // loader to attach to the leaf resource handler. |
| 264 void BeginNavigationRequest(ResourceContext* resource_context, | 264 void BeginNavigationRequest(ResourceContext* resource_context, |
| 265 int64 frame_tree_node_id, | 265 int64 frame_tree_node_id, |
| 266 const CommonNavigationParams& common_params, | 266 const CommonNavigationParams& common_params, |
| 267 const NavigationRequestInfo& info, | 267 const NavigationRequestInfo& info, |
| 268 scoped_refptr<ResourceRequestBody> request_body, | |
| 269 NavigationURLLoaderImplCore* loader); | 268 NavigationURLLoaderImplCore* loader); |
| 270 | 269 |
| 271 private: | 270 private: |
| 272 friend class ResourceDispatcherHostTest; | 271 friend class ResourceDispatcherHostTest; |
| 273 | 272 |
| 274 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 273 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
| 275 TestBlockedRequestsProcessDies); | 274 TestBlockedRequestsProcessDies); |
| 276 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 275 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
| 277 CalculateApproximateMemoryCost); | 276 CalculateApproximateMemoryCost); |
| 278 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 277 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 DelegateMap delegate_map_; | 549 DelegateMap delegate_map_; |
| 551 | 550 |
| 552 scoped_ptr<ResourceScheduler> scheduler_; | 551 scoped_ptr<ResourceScheduler> scheduler_; |
| 553 | 552 |
| 554 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 553 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 555 }; | 554 }; |
| 556 | 555 |
| 557 } // namespace content | 556 } // namespace content |
| 558 | 557 |
| 559 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 558 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |