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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 void OnRenderViewHostSetIsLoading(int child_id, | 173 void OnRenderViewHostSetIsLoading(int child_id, |
174 int route_id, | 174 int route_id, |
175 bool is_loading); | 175 bool is_loading); |
176 | 176 |
177 // Called when a RenderViewHost is hidden. | 177 // Called when a RenderViewHost is hidden. |
178 void OnRenderViewHostWasHidden(int child_id, int route_id); | 178 void OnRenderViewHostWasHidden(int child_id, int route_id); |
179 | 179 |
180 // Called when a RenderViewHost is shown. | 180 // Called when a RenderViewHost is shown. |
181 void OnRenderViewHostWasShown(int child_id, int route_id); | 181 void OnRenderViewHostWasShown(int child_id, int route_id); |
182 | 182 |
| 183 // Called when an AudioRenderHost starts or stops playing. |
| 184 void OnAudioRenderHostStreamStateChanged(int child_id, |
| 185 int route_id, |
| 186 bool is_playing); |
| 187 |
183 // Force cancels any pending requests for the given process. | 188 // Force cancels any pending requests for the given process. |
184 void CancelRequestsForProcess(int child_id); | 189 void CancelRequestsForProcess(int child_id); |
185 | 190 |
186 void OnUserGesture(WebContentsImpl* contents); | 191 void OnUserGesture(WebContentsImpl* contents); |
187 | 192 |
188 // Retrieves a net::URLRequest. Must be called from the IO thread. | 193 // Retrieves a net::URLRequest. Must be called from the IO thread. |
189 net::URLRequest* GetURLRequest(const GlobalRequestID& request_id); | 194 net::URLRequest* GetURLRequest(const GlobalRequestID& request_id); |
190 | 195 |
191 void RemovePendingRequest(int child_id, int request_id); | 196 void RemovePendingRequest(int child_id, int request_id); |
192 | 197 |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 DelegateMap delegate_map_; | 541 DelegateMap delegate_map_; |
537 | 542 |
538 scoped_ptr<ResourceScheduler> scheduler_; | 543 scoped_ptr<ResourceScheduler> scheduler_; |
539 | 544 |
540 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 545 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
541 }; | 546 }; |
542 | 547 |
543 } // namespace content | 548 } // namespace content |
544 | 549 |
545 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 550 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |