OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 extern const char kEnableGPURendering[]; | 90 extern const char kEnableGPURendering[]; |
91 extern const char kEnableIndexedDatabase[]; | 91 extern const char kEnableIndexedDatabase[]; |
92 extern const char kEnableInternalFlash[]; | 92 extern const char kEnableInternalFlash[]; |
93 extern const char kEnableIPv6[]; | 93 extern const char kEnableIPv6[]; |
94 extern const char kEnableLogging[]; | 94 extern const char kEnableLogging[]; |
95 extern const char kEnableMonitorProfile[]; | 95 extern const char kEnableMonitorProfile[]; |
96 extern const char kEnableNaCl[]; | 96 extern const char kEnableNaCl[]; |
97 extern const char kEnableNativeWebWorkers[]; | 97 extern const char kEnableNativeWebWorkers[]; |
98 extern const char kEnablePrivacyBlacklists[]; | 98 extern const char kEnablePrivacyBlacklists[]; |
99 extern const char kEnableRendererAccessibility[]; | 99 extern const char kEnableRendererAccessibility[]; |
100 extern const char kEnableSeccompSandbox[]; | |
101 extern const char kEnableStatsTable[]; | 100 extern const char kEnableStatsTable[]; |
102 extern const char kEnableSync[]; | 101 extern const char kEnableSync[]; |
103 extern const char kEnableSyncAutofill[]; | 102 extern const char kEnableSyncAutofill[]; |
104 extern const char kEnableSyncBookmarks[]; | 103 extern const char kEnableSyncBookmarks[]; |
105 extern const char kEnableSyncPreferences[]; | 104 extern const char kEnableSyncPreferences[]; |
106 extern const char kEnableSyncThemes[]; | 105 extern const char kEnableSyncThemes[]; |
107 extern const char kEnableSyncTypedUrls[]; | 106 extern const char kEnableSyncTypedUrls[]; |
108 extern const char kEnableUserDataDirProfiles[]; | 107 extern const char kEnableUserDataDirProfiles[]; |
109 extern const char kEnableUserStyleSheet[]; | 108 extern const char kEnableUserStyleSheet[]; |
110 extern const char kEnableVerticalTabs[]; | 109 extern const char kEnableVerticalTabs[]; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 #ifndef NDEBUG | 260 #ifndef NDEBUG |
262 extern const char kGearsPluginPathOverride[]; | 261 extern const char kGearsPluginPathOverride[]; |
263 extern const char kInvalidateSyncLogin[]; | 262 extern const char kInvalidateSyncLogin[]; |
264 extern const char kInvalidateSyncXmppLogin[]; | 263 extern const char kInvalidateSyncXmppLogin[]; |
265 #endif | 264 #endif |
266 | 265 |
267 #if !defined(OFFICIAL_BUILD) | 266 #if !defined(OFFICIAL_BUILD) |
268 extern const char kRendererCheckFalseTest[]; | 267 extern const char kRendererCheckFalseTest[]; |
269 #endif | 268 #endif |
270 | 269 |
| 270 #if defined(USE_SECCOMP_SANDBOX) |
| 271 extern const char kDisableSeccompSandbox[]; |
| 272 #else |
| 273 extern const char kEnableSeccompSandbox[]; |
| 274 #endif |
| 275 // Return true if the switches indicate the seccomp sandbox is enabled. |
| 276 bool SeccompSandboxEnabled(); |
| 277 |
271 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 278 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
272 // alphabetical order, or in one of the ifdefs (also in order in each section). | 279 // alphabetical order, or in one of the ifdefs (also in order in each section). |
273 | 280 |
274 } // namespace switches | 281 } // namespace switches |
275 | 282 |
276 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ | 283 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |
OLD | NEW |