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 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // Returns the client for the given |child_id| and |route_id| combo. | 231 // Returns the client for the given |child_id| and |route_id| combo. |
232 Client* GetClient(int child_id, int route_id); | 232 Client* GetClient(int child_id, int route_id); |
233 | 233 |
234 bool should_coalesce_; | 234 bool should_coalesce_; |
235 bool should_throttle_; | 235 bool should_throttle_; |
236 ClientMap client_map_; | 236 ClientMap client_map_; |
237 size_t active_clients_loading_; | 237 size_t active_clients_loading_; |
238 size_t coalesced_clients_; | 238 size_t coalesced_clients_; |
239 bool limit_outstanding_requests_; | 239 bool limit_outstanding_requests_; |
240 size_t outstanding_request_limit_; | 240 size_t outstanding_request_limit_; |
| 241 int fetch_mode_; |
241 // This is a repeating timer to initiate requests on COALESCED Clients. | 242 // This is a repeating timer to initiate requests on COALESCED Clients. |
242 scoped_ptr<base::Timer> coalescing_timer_; | 243 scoped_ptr<base::Timer> coalescing_timer_; |
243 RequestSet unowned_requests_; | 244 RequestSet unowned_requests_; |
244 }; | 245 }; |
245 | 246 |
246 } // namespace content | 247 } // namespace content |
247 | 248 |
248 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 249 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
OLD | NEW |