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

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

Issue 2338623004: Add Blink setting to block doc.written scripts on 2g-like networks (Closed)
Patch Set: Nit Created 4 years, 3 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 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 // backgroundHtmlParserPendingTokenLimit 1384 // backgroundHtmlParserPendingTokenLimit
1385 "BackgroundHtmlParserTokenLimits", 1385 "BackgroundHtmlParserTokenLimits",
1386 1386
1387 // Keys: doHtmlPreloadScanning 1387 // Keys: doHtmlPreloadScanning
1388 "HtmlPreloadScanning", 1388 "HtmlPreloadScanning",
1389 1389
1390 // Keys: lowPriorityIframes 1390 // Keys: lowPriorityIframes
1391 "LowPriorityIFrames", 1391 "LowPriorityIFrames",
1392 1392
1393 // Keys: disallowFetchForDocWrittenScriptsInMainFrame 1393 // Keys: disallowFetchForDocWrittenScriptsInMainFrame
1394 // disallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections
1395 // disallowFetchForDocWrittenScriptsInMainFrameIfEffectively2G
1394 "DisallowFetchForDocWrittenScriptsInMainFrame", 1396 "DisallowFetchForDocWrittenScriptsInMainFrame",
1395 1397
1396 // Keys: parseHTMLOnMainThreadSyncTokenize 1398 // Keys: parseHTMLOnMainThreadSyncTokenize
1397 // parseHTMLOnMainThreadCoalesceChunks 1399 // parseHTMLOnMainThreadCoalesceChunks
1398 "ParseHTMLOnMainThread", 1400 "ParseHTMLOnMainThread",
1399 1401
1400 // Keys: cssExternalScannerNoPreload 1402 // Keys: cssExternalScannerNoPreload
1401 // cssExternalScannerPreload 1403 // cssExternalScannerPreload
1402 "CSSExternalScanner", 1404 "CSSExternalScanner",
1403 }; 1405 };
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 if (channel <= kMaxDisableEncryptionChannel) { 3170 if (channel <= kMaxDisableEncryptionChannel) {
3169 static const char* const kWebRtcDevSwitchNames[] = { 3171 static const char* const kWebRtcDevSwitchNames[] = {
3170 switches::kDisableWebRtcEncryption, 3172 switches::kDisableWebRtcEncryption,
3171 }; 3173 };
3172 to_command_line->CopySwitchesFrom(from_command_line, 3174 to_command_line->CopySwitchesFrom(from_command_line,
3173 kWebRtcDevSwitchNames, 3175 kWebRtcDevSwitchNames,
3174 arraysize(kWebRtcDevSwitchNames)); 3176 arraysize(kWebRtcDevSwitchNames));
3175 } 3177 }
3176 } 3178 }
3177 #endif // defined(ENABLE_WEBRTC) 3179 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | third_party/WebKit/Source/core/testing/Internals.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698