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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1230133005: Fix Resource Priorities and Scheduling (Chrome Side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 static const char* const kBlinkSettingsFieldTrials[] = { 1191 static const char* const kBlinkSettingsFieldTrials[] = {
1192 // Keys: backgroundHtmlParserOutstandingTokenLimit 1192 // Keys: backgroundHtmlParserOutstandingTokenLimit
1193 // backgroundHtmlParserPendingTokenLimit 1193 // backgroundHtmlParserPendingTokenLimit
1194 "BackgroundHtmlParserTokenLimits", 1194 "BackgroundHtmlParserTokenLimits",
1195 1195
1196 // Keys: doHtmlPreloadScanning 1196 // Keys: doHtmlPreloadScanning
1197 "HtmlPreloadScanning", 1197 "HtmlPreloadScanning",
1198 1198
1199 // Keys: lowPriorityIframes 1199 // Keys: lowPriorityIframes
1200 "LowPriorityIFrames", 1200 "LowPriorityIFrames",
1201
1202 // Keys: resourceFetchMode
1203 "ResourceFetchMode",
1201 }; 1204 };
1202 1205
1203 std::vector<std::string> blink_settings; 1206 std::vector<std::string> blink_settings;
1204 for (const char* field_trial_name : kBlinkSettingsFieldTrials) { 1207 for (const char* field_trial_name : kBlinkSettingsFieldTrials) {
1205 // Each blink-settings field trial should include a forcing_flag group, 1208 // Each blink-settings field trial should include a forcing_flag group,
1206 // to make sure that clients that specify the blink-settings flag on the 1209 // to make sure that clients that specify the blink-settings flag on the
1207 // command line are excluded from the experiment groups. To make 1210 // command line are excluded from the experiment groups. To make
1208 // sure we assign clients that specify this flag to the forcing_flag 1211 // sure we assign clients that specify this flag to the forcing_flag
1209 // group, we must call GetVariationParams for each field trial first 1212 // group, we must call GetVariationParams for each field trial first
1210 // (for example, before checking HasSwitch() and returning), since 1213 // (for example, before checking HasSwitch() and returning), since
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2564 switches::kDisableWebRtcEncryption, 2567 switches::kDisableWebRtcEncryption,
2565 }; 2568 };
2566 to_command_line->CopySwitchesFrom(from_command_line, 2569 to_command_line->CopySwitchesFrom(from_command_line,
2567 kWebRtcDevSwitchNames, 2570 kWebRtcDevSwitchNames,
2568 arraysize(kWebRtcDevSwitchNames)); 2571 arraysize(kWebRtcDevSwitchNames));
2569 } 2572 }
2570 } 2573 }
2571 #endif // defined(ENABLE_WEBRTC) 2574 #endif // defined(ENABLE_WEBRTC)
2572 2575
2573 } // namespace chrome 2576 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.h » ('j') | content/browser/loader/resource_scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698