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 // Defines all the command-line switches used by Chrome. | 5 // Defines all the command-line switches used by Chrome. |
6 | 6 |
7 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ | 7 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ |
8 #define CHROME_COMMON_CHROME_SWITCHES_H_ | 8 #define CHROME_COMMON_CHROME_SWITCHES_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 | 12 |
13 #include "base/base_switches.h" | 13 #include "base/base_switches.h" |
14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
15 | 15 |
16 namespace switches { | 16 namespace switches { |
17 | 17 |
18 // ----------------------------------------------------------------------------- | 18 // ----------------------------------------------------------------------------- |
19 // Can't find the switch you are looking for? Try looking in | 19 // Can't find the switch you are looking for? Try looking in |
20 // ui/gfx/gl/gl_switches.cc or base/base_switches.cc or | 20 // ui/gfx/gl/gl_switches.cc or base/base_switches.cc or |
21 // content/common/content_switches.cc or media/base/media_switches.cc instead. | 21 // content/common/content_switches.cc or media/base/media_switches.cc instead. |
22 // ----------------------------------------------------------------------------- | 22 // ----------------------------------------------------------------------------- |
23 | 23 |
24 // All switches in alphabetical order. The switches should be documented | 24 // All switches in alphabetical order. The switches should be documented |
25 // alongside the definition of their values in the .cc file. | 25 // alongside the definition of their values in the .cc file. |
26 extern const char kAllowCrossOriginAuthPrompt[]; | 26 extern const char kAllowCrossOriginAuthPrompt[]; |
27 extern const char kAllowFileAccess[]; | 27 extern const char kAllowFileAccess[]; |
28 extern const char kAllowHTTPBackgroundPage[]; | 28 extern const char kAllowHTTPBackgroundPage[]; |
29 extern const char kAllowLegacyExtensionManifests[]; | 29 extern const char kAllowLegacyExtensionManifests[]; |
| 30 extern const char kAllowNaClSocketAPI[]; |
30 extern const char kAllowOutdatedPlugins[]; | 31 extern const char kAllowOutdatedPlugins[]; |
31 extern const char kAllowRunningInsecureContent[]; | 32 extern const char kAllowRunningInsecureContent[]; |
32 extern const char kAllowScriptingGallery[]; | 33 extern const char kAllowScriptingGallery[]; |
33 extern const char kAllowWebSocketProxy[]; | 34 extern const char kAllowWebSocketProxy[]; |
34 extern const char kAllowWebUICompositing[]; | 35 extern const char kAllowWebUICompositing[]; |
35 extern const char kAlwaysAuthorizePlugins[]; | 36 extern const char kAlwaysAuthorizePlugins[]; |
36 extern const char kAppId[]; | 37 extern const char kAppId[]; |
37 extern const char kApp[]; | 38 extern const char kApp[]; |
38 extern const char kAppNotifyChannelServerURL[]; | 39 extern const char kAppNotifyChannelServerURL[]; |
39 extern const char kAppsCheckoutURL[]; | 40 extern const char kAppsCheckoutURL[]; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 bool IsPrintPreviewEnabled(); | 378 bool IsPrintPreviewEnabled(); |
378 | 379 |
379 bool IsInBrowserThumbnailingEnabled(); | 380 bool IsInBrowserThumbnailingEnabled(); |
380 | 381 |
381 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 382 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
382 // alphabetical order, or in one of the ifdefs (also in order in each section). | 383 // alphabetical order, or in one of the ifdefs (also in order in each section). |
383 | 384 |
384 } // namespace switches | 385 } // namespace switches |
385 | 386 |
386 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ | 387 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |
OLD | NEW |