OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 // 1 - Allow multiple spellcheckers to work simultaneously. | 591 // 1 - Allow multiple spellcheckers to work simultaneously. |
592 // 2 - Allow automatic detection of spell check language. | 592 // 2 - Allow automatic detection of spell check language. |
593 // TODO(sidchat): Implement the above fetaures to work under this flag. | 593 // TODO(sidchat): Implement the above fetaures to work under this flag. |
594 const char kExperimentalSpellcheckerFeatures[] = | 594 const char kExperimentalSpellcheckerFeatures[] = |
595 "experimental-spellchecker-features"; | 595 "experimental-spellchecker-features"; |
596 | 596 |
597 // Explicitly allows additional ports using a comma-separated list of port | 597 // Explicitly allows additional ports using a comma-separated list of port |
598 // numbers. | 598 // numbers. |
599 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports"; | 599 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports"; |
600 | 600 |
| 601 // Give access to all private extension APIs to the exiension loaded with |
| 602 // --load-extension or "Load unpacked extension". |
| 603 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; |
| 604 |
601 // Marks a renderer as extension process. | 605 // Marks a renderer as extension process. |
602 const char kExtensionProcess[] = "extension-process"; | 606 const char kExtensionProcess[] = "extension-process"; |
603 | 607 |
604 // Frequency in seconds for Extensions auto-update. | 608 // Frequency in seconds for Extensions auto-update. |
605 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; | 609 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; |
606 | 610 |
607 // Should we use an external Autofill popup? Default is no. | 611 // Should we use an external Autofill popup? Default is no. |
608 const char kExternalAutofillPopup[] = "external-autofill-popup"; | 612 const char kExternalAutofillPopup[] = "external-autofill-popup"; |
609 | 613 |
610 // These two flags are added around the switches about:flags adds to the | 614 // These two flags are added around the switches about:flags adds to the |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 const char kClearTokenService[] = "clear-token-service"; | 1263 const char kClearTokenService[] = "clear-token-service"; |
1260 | 1264 |
1261 // Sets a token in the token service, for testing. | 1265 // Sets a token in the token service, for testing. |
1262 const char kSetToken[] = "set-token"; | 1266 const char kSetToken[] = "set-token"; |
1263 | 1267 |
1264 // Debug-only switch to specify which websocket live experiment host to be | 1268 // Debug-only switch to specify which websocket live experiment host to be |
1265 // used. If host is specified, it also makes initial delay shorter (5 min to 5 | 1269 // used. If host is specified, it also makes initial delay shorter (5 min to 5 |
1266 // sec) to make it faster to test websocket live experiment code. | 1270 // sec) to make it faster to test websocket live experiment code. |
1267 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; | 1271 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; |
1268 | 1272 |
1269 // Debug only switch to give access to all private extension APIs to any | |
1270 // non-component extension that is requesting it. | |
1271 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; | |
1272 | |
1273 // Enables overriding the path of file manager extension. | 1273 // Enables overriding the path of file manager extension. |
1274 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; | 1274 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; |
1275 #endif // NDEBUG | 1275 #endif // NDEBUG |
1276 | 1276 |
1277 // Disables print preview (Not exposed via about:flags. Only used for testing.) | 1277 // Disables print preview (Not exposed via about:flags. Only used for testing.) |
1278 const char kDisablePrintPreview[] = "disable-print-preview"; | 1278 const char kDisablePrintPreview[] = "disable-print-preview"; |
1279 | 1279 |
1280 // Enables print preview (no PDF viewer, thus not supported with Chromium). | 1280 // Enables print preview (no PDF viewer, thus not supported with Chromium). |
1281 // kDisablePrintPreview overrides this. | 1281 // kDisablePrintPreview overrides this. |
1282 const char kEnablePrintPreview[] = "enable-print-preview"; | 1282 const char kEnablePrintPreview[] = "enable-print-preview"; |
(...skipping 14 matching lines...) Expand all Loading... |
1297 | 1297 |
1298 // ----------------------------------------------------------------------------- | 1298 // ----------------------------------------------------------------------------- |
1299 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1299 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1300 // | 1300 // |
1301 // You were going to just dump your switches here, weren't you? Instead, please | 1301 // You were going to just dump your switches here, weren't you? Instead, please |
1302 // put them in alphabetical order above, or in order inside the appropriate | 1302 // put them in alphabetical order above, or in order inside the appropriate |
1303 // ifdef at the bottom. The order should match the header. | 1303 // ifdef at the bottom. The order should match the header. |
1304 // ----------------------------------------------------------------------------- | 1304 // ----------------------------------------------------------------------------- |
1305 | 1305 |
1306 } // namespace switches | 1306 } // namespace switches |
OLD | NEW |