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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 SaveFileManager* save_file_manager() const { | 162 SaveFileManager* save_file_manager() const { |
163 return save_file_manager_.get(); | 163 return save_file_manager_.get(); |
164 } | 164 } |
165 | 165 |
166 // Called when a RenderViewHost is created. | 166 // Called when a RenderViewHost is created. |
167 void OnRenderViewHostCreated(int child_id, int route_id, bool is_visible); | 167 void OnRenderViewHostCreated(int child_id, int route_id, bool is_visible); |
168 | 168 |
169 // Called when a RenderViewHost is deleted. | 169 // Called when a RenderViewHost is deleted. |
170 void OnRenderViewHostDeleted(int child_id, int route_id); | 170 void OnRenderViewHostDeleted(int child_id, int route_id); |
171 | 171 |
| 172 // Called when a RenderViewHost starts or stops loading. |
| 173 void OnRenderViewHostSetIsLoading(int child_id, |
| 174 int route_id, |
| 175 bool is_loading); |
| 176 |
172 // Called when a RenderViewHost is hidden. | 177 // Called when a RenderViewHost is hidden. |
173 void OnRenderViewHostWasHidden(int child_id, int route_id); | 178 void OnRenderViewHostWasHidden(int child_id, int route_id); |
174 | 179 |
175 // Called when a RenderViewHost is shown. | 180 // Called when a RenderViewHost is shown. |
176 void OnRenderViewHostWasShown(int child_id, int route_id); | 181 void OnRenderViewHostWasShown(int child_id, int route_id); |
177 | 182 |
178 // Force cancels any pending requests for the given process. | 183 // Force cancels any pending requests for the given process. |
179 void CancelRequestsForProcess(int child_id); | 184 void CancelRequestsForProcess(int child_id); |
180 | 185 |
181 void OnUserGesture(WebContentsImpl* contents); | 186 void OnUserGesture(WebContentsImpl* contents); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 DelegateMap delegate_map_; | 527 DelegateMap delegate_map_; |
523 | 528 |
524 scoped_ptr<ResourceScheduler> scheduler_; | 529 scoped_ptr<ResourceScheduler> scheduler_; |
525 | 530 |
526 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 531 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
527 }; | 532 }; |
528 | 533 |
529 } // namespace content | 534 } // namespace content |
530 | 535 |
531 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 536 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |