| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // By default, an https page cannot run JavaScript, CSS or plug-ins from http | 44 // By default, an https page cannot run JavaScript, CSS or plug-ins from http |
| 45 // URLs. This provides an override to get the old insecure behavior. | 45 // URLs. This provides an override to get the old insecure behavior. |
| 46 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; | 46 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; |
| 47 | 47 |
| 48 // Allows injecting extensions and user scripts on the extensions gallery | 48 // Allows injecting extensions and user scripts on the extensions gallery |
| 49 // site. Normally prevented for security reasons, but can be useful for | 49 // site. Normally prevented for security reasons, but can be useful for |
| 50 // automation testing of the gallery. | 50 // automation testing of the gallery. |
| 51 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; | 51 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; |
| 52 | 52 |
| 53 // Specifies comma-separated list of extension ids to grant access to local | |
| 54 // websocket proxy. | |
| 55 const char kAllowWebSocketProxy[] = "allow-websocket-proxy"; | |
| 56 | 53 |
| 57 // Prevents Chrome from requiring authorization to run certain widely installed | 54 // Prevents Chrome from requiring authorization to run certain widely installed |
| 58 // but less commonly used plug-ins. | 55 // but less commonly used plug-ins. |
| 59 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; | 56 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; |
| 60 | 57 |
| 61 // Specifies that the extension-app with the specified id should be launched | 58 // Specifies that the extension-app with the specified id should be launched |
| 62 // according to its configuration. | 59 // according to its configuration. |
| 63 const char kAppId[] = "app-id"; | 60 const char kAppId[] = "app-id"; |
| 64 | 61 |
| 65 // Specifies that the associated value should be launched in "application" | 62 // Specifies that the associated value should be launched in "application" |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 // Sets the maximum concurrent streams over a SPDY session. | 1095 // Sets the maximum concurrent streams over a SPDY session. |
| 1099 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; | 1096 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; |
| 1100 | 1097 |
| 1101 // Specifies the user data directory, which is where the browser will look for | 1098 // Specifies the user data directory, which is where the browser will look for |
| 1102 // all of its state. | 1099 // all of its state. |
| 1103 const char kUserDataDir[] = "user-data-dir"; | 1100 const char kUserDataDir[] = "user-data-dir"; |
| 1104 | 1101 |
| 1105 // Prints version information and quits. | 1102 // Prints version information and quits. |
| 1106 const char kVersion[] = "version"; | 1103 const char kVersion[] = "version"; |
| 1107 | 1104 |
| 1105 // Adds the given extension ID to all the permission whitelists. |
| 1106 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
| 1107 |
| 1108 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to | 1108 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to |
| 1109 // use Chromium's network stack to fetch, and V8 to evaluate. | 1109 // use Chromium's network stack to fetch, and V8 to evaluate. |
| 1110 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; | 1110 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; |
| 1111 | 1111 |
| 1112 // Shows a memory consumption status area widget for OOM debugging. | 1112 // Shows a memory consumption status area widget for OOM debugging. |
| 1113 const char kMemoryWidget[] = "memory-widget"; | 1113 const char kMemoryWidget[] = "memory-widget"; |
| 1114 | 1114 |
| 1115 #if defined(OS_CHROMEOS) | 1115 #if defined(OS_CHROMEOS) |
| 1116 // Enables WebUI based OOBE and login. | 1116 // Enables WebUI based OOBE and login. |
| 1117 const char kWebUILogin[] = "webui-login"; | 1117 const char kWebUILogin[] = "webui-login"; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 | 1283 |
| 1284 // ----------------------------------------------------------------------------- | 1284 // ----------------------------------------------------------------------------- |
| 1285 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1285 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1286 // | 1286 // |
| 1287 // You were going to just dump your switches here, weren't you? Instead, please | 1287 // You were going to just dump your switches here, weren't you? Instead, please |
| 1288 // put them in alphabetical order above, or in order inside the appropriate | 1288 // put them in alphabetical order above, or in order inside the appropriate |
| 1289 // ifdef at the bottom. The order should match the header. | 1289 // ifdef at the bottom. The order should match the header. |
| 1290 // ----------------------------------------------------------------------------- | 1290 // ----------------------------------------------------------------------------- |
| 1291 | 1291 |
| 1292 } // namespace switches | 1292 } // namespace switches |
| OLD | NEW |