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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years 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/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 1324
1325 #if defined(OS_ANDROID) 1325 #if defined(OS_ANDROID)
1326 // Sets the threshold for when to disable auto-hiding the toolbar. If the 1326 // Sets the threshold for when to disable auto-hiding the toolbar. If the
1327 // device's width and height are above the threshold, the toolbar will never 1327 // device's width and height are above the threshold, the toolbar will never
1328 // be hidden due to scrolling. It will still be hidden if page contents go 1328 // be hidden due to scrolling. It will still be hidden if page contents go
1329 // fullscreen. 1329 // fullscreen.
1330 const char kDisableAutoHidingToolbarThreshold[] = 1330 const char kDisableAutoHidingToolbarThreshold[] =
1331 "disable-auto-hiding-toolbar-threshold"; 1331 "disable-auto-hiding-toolbar-threshold";
1332 #endif // defined(OS_ANDROID) 1332 #endif // defined(OS_ANDROID)
1333 1333
1334 // Enables support for the Brotli Content-Encoding.
1335 const char kEnableBrotli[] = "enable-brotli";
1336
1337 // Disables support for the Brotli Content-Encoding.
1338 const char kDisableBrotli[] = "disable-brotli";
1339
1334 bool AboutInSettingsEnabled() { 1340 bool AboutInSettingsEnabled() {
1335 return SettingsWindowEnabled() && 1341 return SettingsWindowEnabled() &&
1336 !base::CommandLine::ForCurrentProcess()->HasSwitch( 1342 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1337 ::switches::kDisableAboutInSettings); 1343 ::switches::kDisableAboutInSettings);
1338 } 1344 }
1339 1345
1340 bool MdExtensionsEnabled() { 1346 bool MdExtensionsEnabled() {
1341 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1347 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1342 ::switches::kEnableMaterialDesignExtensions); 1348 ::switches::kEnableMaterialDesignExtensions);
1343 } 1349 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 1395
1390 // ----------------------------------------------------------------------------- 1396 // -----------------------------------------------------------------------------
1391 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1397 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1392 // 1398 //
1393 // You were going to just dump your switches here, weren't you? Instead, please 1399 // You were going to just dump your switches here, weren't you? Instead, please
1394 // put them in alphabetical order above, or in order inside the appropriate 1400 // put them in alphabetical order above, or in order inside the appropriate
1395 // ifdef at the bottom. The order should match the header. 1401 // ifdef at the bottom. The order should match the header.
1396 // ----------------------------------------------------------------------------- 1402 // -----------------------------------------------------------------------------
1397 1403
1398 } // namespace switches 1404 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698