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

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

Issue 1230133005: Fix Resource Priorities and Scheduling (Chrome Side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment Created 5 years, 4 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
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 net::RequestPriority layout_blocking_priority_threshold_;
242 bool enable_layout_blocking_threshold_;
243 size_t in_flight_layout_blocking_threshold_;
244 size_t max_num_delayable_while_layout_blocking_;
245 size_t max_num_delayable_requests_;
241 // This is a repeating timer to initiate requests on COALESCED Clients. 246 // This is a repeating timer to initiate requests on COALESCED Clients.
242 scoped_ptr<base::Timer> coalescing_timer_; 247 scoped_ptr<base::Timer> coalescing_timer_;
243 RequestSet unowned_requests_; 248 RequestSet unowned_requests_;
244 }; 249 };
245 250
246 } // namespace content 251 } // namespace content
247 252
248 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ 253 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698