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

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

Issue 2441633002: [ResourceScheduler] Make throttling H2+QUIC default disabled (Closed)
Patch Set: fieldtrial_testing_config.json Created 4 years, 1 month 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_unittest.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 #include "content/browser/loader/resource_scheduler.h" 5 #include "content/browser/loader/resource_scheduler.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 19 matching lines...) Expand all
30 30
31 namespace content { 31 namespace content {
32 32
33 namespace { 33 namespace {
34 34
35 // When kPrioritySupportedRequestsDelayable is enabled, requests for 35 // When kPrioritySupportedRequestsDelayable is enabled, requests for
36 // H2/QUIC/SPDY resources can be delayed by the ResourceScheduler just as 36 // H2/QUIC/SPDY resources can be delayed by the ResourceScheduler just as
37 // HTTP/1.1 resources are. Disabling this appears to have negative performance 37 // HTTP/1.1 resources are. Disabling this appears to have negative performance
38 // impact, see https://crbug.com/655585. 38 // impact, see https://crbug.com/655585.
39 const base::Feature kPrioritySupportedRequestsDelayable{ 39 const base::Feature kPrioritySupportedRequestsDelayable{
40 "PrioritySupportedRequestsDelayable", base::FEATURE_ENABLED_BY_DEFAULT}; 40 "PrioritySupportedRequestsDelayable", base::FEATURE_DISABLED_BY_DEFAULT};
41 41
42 enum StartMode { 42 enum StartMode {
43 START_SYNC, 43 START_SYNC,
44 START_ASYNC 44 START_ASYNC
45 }; 45 };
46 46
47 // Flags identifying various attributes of the request that are used 47 // Flags identifying various attributes of the request that are used
48 // when making scheduling decisions. 48 // when making scheduling decisions.
49 using RequestAttributes = uint8_t; 49 using RequestAttributes = uint8_t;
50 const RequestAttributes kAttributeNone = 0x00; 50 const RequestAttributes kAttributeNone = 0x00;
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 client->ReprioritizeRequest(scheduled_resource_request, old_priority_params, 914 client->ReprioritizeRequest(scheduled_resource_request, old_priority_params,
915 new_priority_params); 915 new_priority_params);
916 } 916 }
917 917
918 ResourceScheduler::ClientId ResourceScheduler::MakeClientId( 918 ResourceScheduler::ClientId ResourceScheduler::MakeClientId(
919 int child_id, int route_id) { 919 int child_id, int route_id) {
920 return (static_cast<ResourceScheduler::ClientId>(child_id) << 32) | route_id; 920 return (static_cast<ResourceScheduler::ClientId>(child_id) << 32) | route_id;
921 } 921 }
922 922
923 } // namespace content 923 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698