| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 Client* GetClient(int child_id, int route_id); | 133 Client* GetClient(int child_id, int route_id); |
| 134 | 134 |
| 135 ClientMap client_map_; | 135 ClientMap client_map_; |
| 136 size_t max_num_delayable_requests_; | 136 size_t max_num_delayable_requests_; |
| 137 RequestSet unowned_requests_; | 137 RequestSet unowned_requests_; |
| 138 | 138 |
| 139 // True if requests to servers that support priorities (e.g., H2/QUIC) can | 139 // True if requests to servers that support priorities (e.g., H2/QUIC) can |
| 140 // be delayed. | 140 // be delayed. |
| 141 bool priority_requests_delayable_; | 141 bool priority_requests_delayable_; |
| 142 | 142 |
| 143 // True if the scheduler should yield between several successive calls to |
| 144 // start resource requests. |
| 145 bool yielding_scheduler_enabled_; |
| 146 int max_requests_before_yielding_; |
| 147 |
| 143 DISALLOW_COPY_AND_ASSIGN(ResourceScheduler); | 148 DISALLOW_COPY_AND_ASSIGN(ResourceScheduler); |
| 144 }; | 149 }; |
| 145 | 150 |
| 146 } // namespace content | 151 } // namespace content |
| 147 | 152 |
| 148 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 153 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
| OLD | NEW |