OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/common/content_switches.h" | 5 #include "content/public/common/content_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // By default, file:// URIs cannot read other file:// URIs. This is an | 9 // By default, file:// URIs cannot read other file:// URIs. This is an |
10 // override for developers who need the old behavior for testing. | 10 // override for developers who need the old behavior for testing. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Disable the use of an ImageTransportSurface. This means the GPU process | 200 // Disable the use of an ImageTransportSurface. This means the GPU process |
201 // will present the rendered page rather than the browser process. | 201 // will present the rendered page rather than the browser process. |
202 const char kDisableImageTransportSurface[] = "disable-image-transport-surface"; | 202 const char kDisableImageTransportSurface[] = "disable-image-transport-surface"; |
203 | 203 |
204 // Prevent Java from running. | 204 // Prevent Java from running. |
205 const char kDisableJava[] = "disable-java"; | 205 const char kDisableJava[] = "disable-java"; |
206 | 206 |
207 // Don't execute JavaScript (browser JS like the new tab page still runs). | 207 // Don't execute JavaScript (browser JS like the new tab page still runs). |
208 const char kDisableJavaScript[] = "disable-javascript"; | 208 const char kDisableJavaScript[] = "disable-javascript"; |
209 | 209 |
| 210 // Don't kill a child process when it sends a bad IPC message. Apart |
| 211 // from testing, it is a bad idea from a security perspective to enable |
| 212 // this switch. |
| 213 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; |
| 214 |
210 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). | 215 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). |
211 const char kDisableLegacyEncryptedMedia[] = "disable-legacy-encrypted-media"; | 216 const char kDisableLegacyEncryptedMedia[] = "disable-legacy-encrypted-media"; |
212 | 217 |
213 // Disable LocalStorage. | 218 // Disable LocalStorage. |
214 const char kDisableLocalStorage[] = "disable-local-storage"; | 219 const char kDisableLocalStorage[] = "disable-local-storage"; |
215 | 220 |
216 // Force logging to be disabled. Logging is enabled by default in debug | 221 // Force logging to be disabled. Logging is enabled by default in debug |
217 // builds. | 222 // builds. |
218 const char kDisableLogging[] = "disable-logging"; | 223 const char kDisableLogging[] = "disable-logging"; |
219 | 224 |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 #endif | 957 #endif |
953 | 958 |
954 #if defined(USE_AURA) | 959 #if defined(USE_AURA) |
955 // Forces usage of the test compositor. Needed to run ui tests on bots. | 960 // Forces usage of the test compositor. Needed to run ui tests on bots. |
956 extern const char kTestCompositor[] = "test-compositor"; | 961 extern const char kTestCompositor[] = "test-compositor"; |
957 #endif | 962 #endif |
958 | 963 |
959 // Don't dump stuff here, follow the same order as the header. | 964 // Don't dump stuff here, follow the same order as the header. |
960 | 965 |
961 } // namespace switches | 966 } // namespace switches |
OLD | NEW |