Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: content/browser/loader/resource_scheduler.h

Issue 2435743002: [ResourceScheduler] Throttle H2/QUIC requests just like we do for 1.1 (Closed)
Patch Set: Nit Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698