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

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: Fixed member init order Created 5 years, 5 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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 static const char* const kBlinkSettingsFieldTrials[] = { 1188 static const char* const kBlinkSettingsFieldTrials[] = {
1189 // Keys: backgroundHtmlParserOutstandingTokenLimit 1189 // Keys: backgroundHtmlParserOutstandingTokenLimit
1190 // backgroundHtmlParserPendingTokenLimit 1190 // backgroundHtmlParserPendingTokenLimit
1191 "BackgroundHtmlParserTokenLimits", 1191 "BackgroundHtmlParserTokenLimits",
1192 1192
1193 // Keys: doHtmlPreloadScanning 1193 // Keys: doHtmlPreloadScanning
1194 "HtmlPreloadScanning", 1194 "HtmlPreloadScanning",
1195 1195
1196 // Keys: lowPriorityIframes 1196 // Keys: lowPriorityIframes
1197 "LowPriorityIFrames", 1197 "LowPriorityIFrames",
1198
1199 // Keys: resourceFetchMode
1200 "ResourceFetchMode",
1198 }; 1201 };
1199 1202
1200 std::vector<std::string> blink_settings; 1203 std::vector<std::string> blink_settings;
1201 for (const char* field_trial_name : kBlinkSettingsFieldTrials) { 1204 for (const char* field_trial_name : kBlinkSettingsFieldTrials) {
1202 // Each blink-settings field trial should include a forcing_flag group, 1205 // Each blink-settings field trial should include a forcing_flag group,
1203 // to make sure that clients that specify the blink-settings flag on the 1206 // to make sure that clients that specify the blink-settings flag on the
1204 // command line are excluded from the experiment groups. To make 1207 // command line are excluded from the experiment groups. To make
1205 // sure we assign clients that specify this flag to the forcing_flag 1208 // sure we assign clients that specify this flag to the forcing_flag
1206 // group, we must call GetVariationParams for each field trial first 1209 // group, we must call GetVariationParams for each field trial first
1207 // (for example, before checking HasSwitch() and returning), since 1210 // (for example, before checking HasSwitch() and returning), since
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
2547 switches::kDisableWebRtcEncryption, 2550 switches::kDisableWebRtcEncryption,
2548 }; 2551 };
2549 to_command_line->CopySwitchesFrom(from_command_line, 2552 to_command_line->CopySwitchesFrom(from_command_line,
2550 kWebRtcDevSwitchNames, 2553 kWebRtcDevSwitchNames,
2551 arraysize(kWebRtcDevSwitchNames)); 2554 arraysize(kWebRtcDevSwitchNames));
2552 } 2555 }
2553 } 2556 }
2554 #endif // defined(ENABLE_WEBRTC) 2557 #endif // defined(ENABLE_WEBRTC)
2555 2558
2556 } // namespace chrome 2559 } // 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