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

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

Issue 2711633003: Reland of [ResourceScheduler] Yield after starting several requests (Closed)
Patch Set: Address comments from PS3 Created 3 years, 10 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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