| 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 20 matching lines...) Expand all Loading... |
| 31 // On ChromeOS, file:// access is disabled except for certain whitelisted | 31 // On ChromeOS, file:// access is disabled except for certain whitelisted |
| 32 // directories. This switch re-enables file:// for testing. | 32 // directories. This switch re-enables file:// for testing. |
| 33 const char kAllowFileAccess[] = "allow-file-access"; | 33 const char kAllowFileAccess[] = "allow-file-access"; |
| 34 | 34 |
| 35 // Allows non-https URL for background_page for hosted apps. | 35 // Allows non-https URL for background_page for hosted apps. |
| 36 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; | 36 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; |
| 37 | 37 |
| 38 // Allow non-secure origins to use the screen capture API. | 38 // Allow non-secure origins to use the screen capture API. |
| 39 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture"; | 39 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture"; |
| 40 | 40 |
| 41 // Allows the browser to load extensions that lack a modern manifest when that | |
| 42 // would otherwise be forbidden. | |
| 43 const char kAllowLegacyExtensionManifests[] = | |
| 44 "allow-legacy-extension-manifests"; | |
| 45 | |
| 46 // Specifies comma-separated list of extension ids or hosts to grant | 41 // Specifies comma-separated list of extension ids or hosts to grant |
| 47 // access to CRX file system APIs. | 42 // access to CRX file system APIs. |
| 48 const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api"; | 43 const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api"; |
| 49 | 44 |
| 50 // Specifies comma-separated list of extension ids or hosts to grant | 45 // Specifies comma-separated list of extension ids or hosts to grant |
| 51 // access to file handle APIs. | 46 // access to file handle APIs. |
| 52 const char kAllowNaClFileHandleAPI[] = "allow-nacl-file-handle-api"; | 47 const char kAllowNaClFileHandleAPI[] = "allow-nacl-file-handle-api"; |
| 53 | 48 |
| 54 // Specifies comma-separated list of extension ids or hosts to grant | 49 // Specifies comma-separated list of extension ids or hosts to grant |
| 55 // access to TCP/UDP socket APIs. | 50 // access to TCP/UDP socket APIs. |
| 56 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; | 51 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; |
| 57 | 52 |
| 58 // Don't block outdated plugins. | 53 // Don't block outdated plugins. |
| 59 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; | 54 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; |
| 60 | 55 |
| 61 // By default, an https page cannot run JavaScript, CSS or plug-ins from http | 56 // By default, an https page cannot run JavaScript, CSS or plug-ins from http |
| 62 // URLs. This provides an override to get the old insecure behavior. | 57 // URLs. This provides an override to get the old insecure behavior. |
| 63 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; | 58 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; |
| 64 | 59 |
| 65 // Allows injecting extensions and user scripts on the extensions gallery | |
| 66 // site. Normally prevented for security reasons, but can be useful for | |
| 67 // automation testing of the gallery. | |
| 68 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; | |
| 69 | |
| 70 // Prevents Chrome from requiring authorization to run certain widely installed | 60 // Prevents Chrome from requiring authorization to run certain widely installed |
| 71 // but less commonly used plug-ins. | 61 // but less commonly used plug-ins. |
| 72 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; | 62 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; |
| 73 | 63 |
| 74 // Specifies that the extension-app with the specified id should be launched | 64 // Specifies that the extension-app with the specified id should be launched |
| 75 // according to its configuration. | 65 // according to its configuration. |
| 76 const char kAppId[] = "app-id"; | 66 const char kAppId[] = "app-id"; |
| 77 | 67 |
| 78 // Specifies that the associated value should be launched in "application" | 68 // Specifies that the associated value should be launched in "application" |
| 79 // mode. | 69 // mode. |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 // Enables logging for extension activity. | 532 // Enables logging for extension activity. |
| 543 const char kEnableExtensionActivityLogging[] = | 533 const char kEnableExtensionActivityLogging[] = |
| 544 "enable-extension-activity-logging"; | 534 "enable-extension-activity-logging"; |
| 545 | 535 |
| 546 const char kEnableExtensionActivityLogTesting[] = | 536 const char kEnableExtensionActivityLogTesting[] = |
| 547 "enable-extension-activity-log-testing"; | 537 "enable-extension-activity-log-testing"; |
| 548 | 538 |
| 549 // Enables or disables showing extensions in the action box. | 539 // Enables or disables showing extensions in the action box. |
| 550 const char kExtensionsInActionBox[] = "extensions-in-action-box"; | 540 const char kExtensionsInActionBox[] = "extensions-in-action-box"; |
| 551 | 541 |
| 552 // Enables or disables running extensions on chrome:// URLs. | |
| 553 // Extensions still need to explicitly request access to chrome:// URLs in the | |
| 554 // manifest. | |
| 555 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; | |
| 556 | |
| 557 // Enable the fast unload controller, which speeds up tab/window close by | 542 // Enable the fast unload controller, which speeds up tab/window close by |
| 558 // running a tab's onunload js handler independently of the GUI - | 543 // running a tab's onunload js handler independently of the GUI - |
| 559 // crbug.com/142458 . | 544 // crbug.com/142458 . |
| 560 const char kEnableFastUnload[] = "enable-fast-unload"; | 545 const char kEnableFastUnload[] = "enable-fast-unload"; |
| 561 | 546 |
| 562 // By default, cookies are not allowed on file://. They are needed for testing, | 547 // By default, cookies are not allowed on file://. They are needed for testing, |
| 563 // for example page cycler and layout tests. See bug 1157243. | 548 // for example page cycler and layout tests. See bug 1157243. |
| 564 const char kEnableFileCookies[] = "enable-file-cookies"; | 549 const char kEnableFileCookies[] = "enable-file-cookies"; |
| 565 | 550 |
| 566 // Enables Google Now integration. | 551 // Enables Google Now integration. |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 | 1200 |
| 1216 // Causes the process to run as a service process. | 1201 // Causes the process to run as a service process. |
| 1217 const char kServiceProcess[] = "service"; | 1202 const char kServiceProcess[] = "service"; |
| 1218 | 1203 |
| 1219 // Sets a token in the token service, for testing. | 1204 // Sets a token in the token service, for testing. |
| 1220 const char kSetToken[] = "set-token"; | 1205 const char kSetToken[] = "set-token"; |
| 1221 | 1206 |
| 1222 // If true the app list will be shown. | 1207 // If true the app list will be shown. |
| 1223 const char kShowAppList[] = "show-app-list"; | 1208 const char kShowAppList[] = "show-app-list"; |
| 1224 | 1209 |
| 1225 // Makes component extensions appear in chrome://settings/extensions. | |
| 1226 const char kShowComponentExtensionOptions[] = | |
| 1227 "show-component-extension-options"; | |
| 1228 | |
| 1229 // See kHideIcons. | 1210 // See kHideIcons. |
| 1230 const char kShowIcons[] = "show-icons"; | 1211 const char kShowIcons[] = "show-icons"; |
| 1231 | 1212 |
| 1232 // If true the alignment of the launcher can be changed. | 1213 // If true the alignment of the launcher can be changed. |
| 1233 const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu"; | 1214 const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu"; |
| 1234 | 1215 |
| 1235 // Marks a renderer as the signin process. | 1216 // Marks a renderer as the signin process. |
| 1236 const char kSigninProcess[] = "signin-process"; | 1217 const char kSigninProcess[] = "signin-process"; |
| 1237 | 1218 |
| 1238 // Does not show an infobar when an extension attaches to a page using | 1219 // Does not show an infobar when an extension attaches to a page using |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 | 1560 |
| 1580 // ----------------------------------------------------------------------------- | 1561 // ----------------------------------------------------------------------------- |
| 1581 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1562 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1582 // | 1563 // |
| 1583 // You were going to just dump your switches here, weren't you? Instead, please | 1564 // You were going to just dump your switches here, weren't you? Instead, please |
| 1584 // put them in alphabetical order above, or in order inside the appropriate | 1565 // put them in alphabetical order above, or in order inside the appropriate |
| 1585 // ifdef at the bottom. The order should match the header. | 1566 // ifdef at the bottom. The order should match the header. |
| 1586 // ----------------------------------------------------------------------------- | 1567 // ----------------------------------------------------------------------------- |
| 1587 | 1568 |
| 1588 } // namespace switches | 1569 } // namespace switches |
| OLD | NEW |