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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Puts the resource dispatcher host in an inactive state (unable to begin | 96 // Puts the resource dispatcher host in an inactive state (unable to begin |
97 // new requests). Cancels all pending requests. | 97 // new requests). Cancels all pending requests. |
98 void Shutdown(); | 98 void Shutdown(); |
99 | 99 |
100 // Notify the ResourceDispatcherHostImpl of a new resource context. | 100 // Notify the ResourceDispatcherHostImpl of a new resource context. |
101 void AddResourceContext(ResourceContext* context); | 101 void AddResourceContext(ResourceContext* context); |
102 | 102 |
103 // Notify the ResourceDispatcherHostImpl of a resource context destruction. | 103 // Notify the ResourceDispatcherHostImpl of a resource context destruction. |
104 void RemoveResourceContext(ResourceContext* context); | 104 void RemoveResourceContext(ResourceContext* context); |
105 | 105 |
| 106 // Resumes a request that deferred at response start. |
| 107 void ResumeResponseDeferredAtStart(const GlobalRequestID& id); |
| 108 |
106 // Force cancels any pending requests for the given |context|. This is | 109 // Force cancels any pending requests for the given |context|. This is |
107 // necessary to ensure that before |context| goes away, all requests | 110 // necessary to ensure that before |context| goes away, all requests |
108 // for it are dead. | 111 // for it are dead. |
109 void CancelRequestsForContext(ResourceContext* context); | 112 void CancelRequestsForContext(ResourceContext* context); |
110 | 113 |
111 // Returns true if the message was a resource message that was processed. | 114 // Returns true if the message was a resource message that was processed. |
112 bool OnMessageReceived(const IPC::Message& message, | 115 bool OnMessageReceived(const IPC::Message& message, |
113 ResourceMessageFilter* filter); | 116 ResourceMessageFilter* filter); |
114 | 117 |
115 // Initiates a save file from the browser process (as opposed to a resource | 118 // Initiates a save file from the browser process (as opposed to a resource |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 DelegateMap delegate_map_; | 505 DelegateMap delegate_map_; |
503 | 506 |
504 scoped_ptr<ResourceScheduler> scheduler_; | 507 scoped_ptr<ResourceScheduler> scheduler_; |
505 | 508 |
506 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 509 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
507 }; | 510 }; |
508 | 511 |
509 } // namespace content | 512 } // namespace content |
510 | 513 |
511 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 514 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |