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

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: Added Accept-Ecnoding test 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 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 1313
1314 #if defined(OS_ANDROID) 1314 #if defined(OS_ANDROID)
1315 // Sets the threshold for when to disable auto-hiding the toolbar. If the 1315 // Sets the threshold for when to disable auto-hiding the toolbar. If the
1316 // device's width and height are above the threshold, the toolbar will never 1316 // device's width and height are above the threshold, the toolbar will never
1317 // be hidden due to scrolling. It will still be hidden if page contents go 1317 // be hidden due to scrolling. It will still be hidden if page contents go
1318 // fullscreen. 1318 // fullscreen.
1319 const char kDisableAutoHidingToolbarThreshold[] = 1319 const char kDisableAutoHidingToolbarThreshold[] =
1320 "disable-auto-hiding-toolbar-threshold"; 1320 "disable-auto-hiding-toolbar-threshold";
1321 #endif // defined(OS_ANDROID) 1321 #endif // defined(OS_ANDROID)
1322 1322
1323 // Enables support for the Brotli Content-Encoding.
1324 const char kEnableBrotli[] = "enable-brotli";
1325
1326 // Disables support for the Brotli Content-Encoding.
1327 const char kDisableBrotli[] = "disable-brotli";
1328
1323 bool AboutInSettingsEnabled() { 1329 bool AboutInSettingsEnabled() {
1324 return SettingsWindowEnabled() && 1330 return SettingsWindowEnabled() &&
1325 !base::CommandLine::ForCurrentProcess()->HasSwitch( 1331 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1326 ::switches::kDisableAboutInSettings); 1332 ::switches::kDisableAboutInSettings);
1327 } 1333 }
1328 1334
1329 bool MdExtensionsEnabled() { 1335 bool MdExtensionsEnabled() {
1330 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1336 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1331 ::switches::kEnableMaterialDesignExtensions); 1337 ::switches::kEnableMaterialDesignExtensions);
1332 } 1338 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1379
1374 // ----------------------------------------------------------------------------- 1380 // -----------------------------------------------------------------------------
1375 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1381 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1376 // 1382 //
1377 // You were going to just dump your switches here, weren't you? Instead, please 1383 // You were going to just dump your switches here, weren't you? Instead, please
1378 // put them in alphabetical order above, or in order inside the appropriate 1384 // put them in alphabetical order above, or in order inside the appropriate
1379 // ifdef at the bottom. The order should match the header. 1385 // ifdef at the bottom. The order should match the header.
1380 // ----------------------------------------------------------------------------- 1386 // -----------------------------------------------------------------------------
1381 1387
1382 } // namespace switches 1388 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | components/cronet.gypi » ('j') | net/filter/filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698