| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/common/switches.h" | 5 #include "extensions/common/switches.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const char kErrorConsole[] = "error-console"; | 28 const char kErrorConsole[] = "error-console"; |
| 29 | 29 |
| 30 // The time in milliseconds that an extension event page can be idle before it | 30 // The time in milliseconds that an extension event page can be idle before it |
| 31 // is shut down. | 31 // is shut down. |
| 32 const char kEventPageIdleTime[] = "event-page-idle-time"; | 32 const char kEventPageIdleTime[] = "event-page-idle-time"; |
| 33 | 33 |
| 34 // The time in milliseconds that an extension event page has between being | 34 // The time in milliseconds that an extension event page has between being |
| 35 // notified of its impending unload and that unload happening. | 35 // notified of its impending unload and that unload happening. |
| 36 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; | 36 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; |
| 37 | 37 |
| 38 // Values for the kExtensionContentVerification flag. See ContentVerifier::Mode |
| 39 // for more explanation. |
| 40 const char kExtensionContentVerificationBootstrap[] = "bootstrap"; |
| 41 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict"; |
| 42 const char kExtensionContentVerificationEnforce[] = "enforce"; |
| 43 |
| 44 // Name of the command line flag to force content verification to be on in one |
| 45 // of various modes. |
| 46 const char kExtensionContentVerification[] = "extension-content-verification"; |
| 47 |
| 38 // Marks a renderer as extension process. | 48 // Marks a renderer as extension process. |
| 39 const char kExtensionProcess[] = "extension-process"; | 49 const char kExtensionProcess[] = "extension-process"; |
| 40 | 50 |
| 41 // Enables extensions running scripts on chrome:// URLs. | 51 // Enables extensions running scripts on chrome:// URLs. |
| 42 // Extensions still need to explicitly request access to chrome:// URLs in the | 52 // Extensions still need to explicitly request access to chrome:// URLs in the |
| 43 // manifest. | 53 // manifest. |
| 44 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; | 54 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; |
| 45 | 55 |
| 46 // Whether to force developer mode extensions highlighting. | 56 // Whether to force developer mode extensions highlighting. |
| 47 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; | 57 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; |
| 48 | 58 |
| 49 // Enables setting global commands through the Extensions Commands API. | 59 // Enables setting global commands through the Extensions Commands API. |
| 50 const char kGlobalCommands[] = "global-commands"; | 60 const char kGlobalCommands[] = "global-commands"; |
| 51 | 61 |
| 52 // Makes component extensions appear in chrome://settings/extensions. | 62 // Makes component extensions appear in chrome://settings/extensions. |
| 53 const char kShowComponentExtensionOptions[] = | 63 const char kShowComponentExtensionOptions[] = |
| 54 "show-component-extension-options"; | 64 "show-component-extension-options"; |
| 55 | 65 |
| 56 // Adds the given extension ID to all the permission whitelists. | 66 // Adds the given extension ID to all the permission whitelists. |
| 57 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 67 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
| 58 | 68 |
| 59 } // namespace switches | 69 } // namespace switches |
| 60 | 70 |
| 61 } // namespace extensions | 71 } // namespace extensions |
| OLD | NEW |