| 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 | |
| 57 // Allow compositing on chrome:// pages. | 53 // Allow compositing on chrome:// pages. |
| 58 const char kAllowWebUICompositing[] = "allow-webui-compositing"; | 54 const char kAllowWebUICompositing[] = "allow-webui-compositing"; |
| 59 | 55 |
| 60 // Prevents Chrome from requiring authorization to run certain widely installed | 56 // Prevents Chrome from requiring authorization to run certain widely installed |
| 61 // but less commonly used plug-ins. | 57 // but less commonly used plug-ins. |
| 62 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; | 58 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; |
| 63 | 59 |
| 64 // Specifies that the extension-app with the specified id should be launched | 60 // Specifies that the extension-app with the specified id should be launched |
| 65 // according to its configuration. | 61 // according to its configuration. |
| 66 const char kAppId[] = "app-id"; | 62 const char kAppId[] = "app-id"; |
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1182 // Sets the maximum concurrent streams over a SPDY session. | 1178 // Sets the maximum concurrent streams over a SPDY session. |
| 1183 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; | 1179 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; |
| 1184 | 1180 |
| 1185 // Specifies the user data directory, which is where the browser will look for | 1181 // Specifies the user data directory, which is where the browser will look for |
| 1186 // all of its state. | 1182 // all of its state. |
| 1187 const char kUserDataDir[] = "user-data-dir"; | 1183 const char kUserDataDir[] = "user-data-dir"; |
| 1188 | 1184 |
| 1189 // Prints version information and quits. | 1185 // Prints version information and quits. |
| 1190 const char kVersion[] = "version"; | 1186 const char kVersion[] = "version"; |
| 1191 | 1187 |
| 1188 // Adds the given extension ID to all the permission whitelists. |
| 1189 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
| 1190 |
| 1192 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to | 1191 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to |
| 1193 // use Chromium's network stack to fetch, and V8 to evaluate. | 1192 // use Chromium's network stack to fetch, and V8 to evaluate. |
| 1194 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; | 1193 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; |
| 1195 | 1194 |
| 1196 // Shows a memory consumption status area widget for OOM debugging. | 1195 // Shows a memory consumption status area widget for OOM debugging. |
| 1197 const char kMemoryWidget[] = "memory-widget"; | 1196 const char kMemoryWidget[] = "memory-widget"; |
| 1198 | 1197 |
| 1199 #if defined(OS_CHROMEOS) | 1198 #if defined(OS_CHROMEOS) |
| 1200 // Enables WebUI based OOBE and login. | 1199 // Enables WebUI based OOBE and login. |
| 1201 const char kWebUILogin[] = "webui-login"; | 1200 const char kWebUILogin[] = "webui-login"; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 | 1389 |
| 1391 // ----------------------------------------------------------------------------- | 1390 // ----------------------------------------------------------------------------- |
| 1392 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1391 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1393 // | 1392 // |
| 1394 // You were going to just dump your switches here, weren't you? Instead, please | 1393 // You were going to just dump your switches here, weren't you? Instead, please |
| 1395 // put them in alphabetical order above, or in order inside the appropriate | 1394 // put them in alphabetical order above, or in order inside the appropriate |
| 1396 // ifdef at the bottom. The order should match the header. | 1395 // ifdef at the bottom. The order should match the header. |
| 1397 // ----------------------------------------------------------------------------- | 1396 // ----------------------------------------------------------------------------- |
| 1398 | 1397 |
| 1399 } // namespace switches | 1398 } // namespace switches |
| OLD | NEW |