switches.cc 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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
  3. // found in the LICENSE file.
  4. #include "extensions/common/switches.h"
  5. #include "build/chromeos_buildflags.h"
  6. namespace extensions {
  7. namespace switches {
  8. // Allows non-https URL for background_page for hosted apps.
  9. const char kAllowHTTPBackgroundPage[] = "allow-http-background-page";
  10. // Allows the browser to load extensions that lack a modern manifest when that
  11. // would otherwise be forbidden.
  12. const char kAllowLegacyExtensionManifests[] =
  13. "allow-legacy-extension-manifests";
  14. // Adds the given extension ID to all the permission allowlists.
  15. const char kAllowlistedExtensionID[] = "allowlisted-extension-id";
  16. // Provides the same functionality as kAllowlistedExtensionID.
  17. // TODO(b/204179234): Remove at the end of the deprecation period. Deprecated on
  18. // 10/2021.
  19. const char kDEPRECATED_AllowlistedExtensionID[] = "whitelisted-extension-id";
  20. // Enables extension options to be embedded in chrome://extensions rather than
  21. // a new tab.
  22. const char kEmbeddedExtensionOptions[] = "embedded-extension-options";
  23. // Enable BLE Advertisiing in apps.
  24. const char kEnableBLEAdvertising[] = "enable-ble-advertising-in-apps";
  25. // Enables extension APIs that are in development.
  26. const char kEnableExperimentalExtensionApis[] =
  27. "enable-experimental-extension-apis";
  28. // Disable the net::URLRequestThrottlerManager functionality for
  29. // requests originating from extensions.
  30. const char kDisableExtensionsHttpThrottling[] =
  31. "disable-extensions-http-throttling";
  32. // Marks a renderer as extension process.
  33. const char kExtensionProcess[] = "extension-process";
  34. // Enables extensions running scripts on chrome:// URLs.
  35. // Extensions still need to explicitly request access to chrome:// URLs in the
  36. // manifest.
  37. const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls";
  38. // Whether to force developer mode extensions highlighting.
  39. const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting";
  40. // Whether to disable app content verification when testing changes locally on
  41. // Chromebox for Meetings hardware.
  42. const char kDisableAppContentVerification[] =
  43. "disable-app-content-verification";
  44. // Comma-separated list of paths to apps to load at startup. The first app in
  45. // the list will be launched.
  46. const char kLoadApps[] = "load-apps";
  47. // Comma-separated list of paths to extensions to load at startup.
  48. const char kLoadExtension[] = "load-extension";
  49. #if BUILDFLAG(IS_CHROMEOS_ASH)
  50. // Path to the unpacked test extension to load into the signin profile. The ID
  51. // extension loaded must match kTestSigninProfileExtensionId.
  52. const char kLoadSigninProfileTestExtension[] =
  53. "load-signin-profile-test-extension";
  54. // Path to the unpacked test extension to load into guest mode. The extension ID
  55. // must match kGuestModeTestExtensionId.
  56. const char kLoadGuestModeTestExtension[] = "load-guest-mode-test-extension";
  57. #endif
  58. // Set the parameters for ExtensionURLLoaderThrottleBrowserTest.
  59. const char kSetExtensionThrottleTestParams[] =
  60. "set-extension-throttle-test-params";
  61. // Makes component extensions appear in chrome://settings/extensions.
  62. const char kShowComponentExtensionOptions[] =
  63. "show-component-extension-options";
  64. // Pass launch source to platform apps.
  65. const char kTraceAppSource[] = "enable-trace-app-source";
  66. // Enable package hash check: the .crx file sha256 hash sum should be equal to
  67. // the one received from update manifest.
  68. const char kEnableCrxHashCheck[] = "enable-crx-hash-check";
  69. // Mute extension errors while working with new manifest version.
  70. const char kAllowFutureManifestVersion[] = "allow-future-manifest-version";
  71. } // namespace switches
  72. } // namespace extensions