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

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

Issue 339663010: Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 6 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 | Annotate | Revision Log
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // access to TCP/UDP socket APIs. 45 // access to TCP/UDP socket APIs.
46 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; 46 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api";
47 47
48 // Don't block outdated plugins. 48 // Don't block outdated plugins.
49 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; 49 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
50 50
51 // By default, an https page cannot run JavaScript, CSS or plug-ins from http 51 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
52 // URLs. This provides an override to get the old insecure behavior. 52 // URLs. This provides an override to get the old insecure behavior.
53 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; 53 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
54 54
55 // Specifies the threshold to be used when determining of an Alternate-Protocol
56 // advertisement will be honored. If the advertised probability is larger
57 // than the threshold, then it will be honored.
58 const char kAlternateProtocolProbabilityThreshold[] =
59 "alternate-protocol-probability-threshold";
Lei Zhang 2014/06/30 19:09:24 Is "alternative protocol" too generic? Do you want
Ryan Hamilton 2014/06/30 21:33:01 Alternate Protocol is actually not QUIC specific (
60
55 // Prevents Chrome from requiring authorization to run certain widely installed 61 // Prevents Chrome from requiring authorization to run certain widely installed
56 // but less commonly used plug-ins. 62 // but less commonly used plug-ins.
57 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; 63 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins";
58 64
59 // Specifies that the extension-app with the specified id should be launched 65 // Specifies that the extension-app with the specified id should be launched
60 // according to its configuration. 66 // according to its configuration.
61 const char kAppId[] = "app-id"; 67 const char kAppId[] = "app-id";
62 68
63 // Specifies that the associated value should be launched in "application" 69 // Specifies that the associated value should be launched in "application"
64 // mode. 70 // mode.
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 1420
1415 // ----------------------------------------------------------------------------- 1421 // -----------------------------------------------------------------------------
1416 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1422 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1417 // 1423 //
1418 // You were going to just dump your switches here, weren't you? Instead, please 1424 // You were going to just dump your switches here, weren't you? Instead, please
1419 // put them in alphabetical order above, or in order inside the appropriate 1425 // put them in alphabetical order above, or in order inside the appropriate
1420 // ifdef at the bottom. The order should match the header. 1426 // ifdef at the bottom. The order should match the header.
1421 // ----------------------------------------------------------------------------- 1427 // -----------------------------------------------------------------------------
1422 1428
1423 } // namespace switches 1429 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698