| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Returns the client ID for the given |child_id| and |route_id| combo. | 130 // Returns the client ID for the given |child_id| and |route_id| combo. |
| 131 ClientId MakeClientId(int child_id, int route_id); | 131 ClientId MakeClientId(int child_id, int route_id); |
| 132 | 132 |
| 133 // Returns the client for the given |child_id| and |route_id| combo. | 133 // Returns the client for the given |child_id| and |route_id| combo. |
| 134 Client* GetClient(int child_id, int route_id); | 134 Client* GetClient(int child_id, int route_id); |
| 135 | 135 |
| 136 ClientMap client_map_; | 136 ClientMap client_map_; |
| 137 size_t max_num_delayable_requests_; | 137 size_t max_num_delayable_requests_; |
| 138 RequestSet unowned_requests_; | 138 RequestSet unowned_requests_; |
| 139 | 139 |
| 140 // True if requests to servers that support priorities (e.g., H2/QUIC) can |
| 141 // be delayed. |
| 142 bool priority_requests_delayable_; |
| 143 |
| 140 DISALLOW_COPY_AND_ASSIGN(ResourceScheduler); | 144 DISALLOW_COPY_AND_ASSIGN(ResourceScheduler); |
| 141 }; | 145 }; |
| 142 | 146 |
| 143 } // namespace content | 147 } // namespace content |
| 144 | 148 |
| 145 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 149 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
| OLD | NEW |