| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Disable the use of an ImageTransportSurface. This means the GPU process | 194 // Disable the use of an ImageTransportSurface. This means the GPU process |
| 195 // will present the rendered page rather than the browser process. | 195 // will present the rendered page rather than the browser process. |
| 196 const char kDisableImageTransportSurface[] = "disable-image-transport-surface"; | 196 const char kDisableImageTransportSurface[] = "disable-image-transport-surface"; |
| 197 | 197 |
| 198 // Prevent Java from running. | 198 // Prevent Java from running. |
| 199 const char kDisableJava[] = "disable-java"; | 199 const char kDisableJava[] = "disable-java"; |
| 200 | 200 |
| 201 // Don't execute JavaScript (browser JS like the new tab page still runs). | 201 // Don't execute JavaScript (browser JS like the new tab page still runs). |
| 202 const char kDisableJavaScript[] = "disable-javascript"; | 202 const char kDisableJavaScript[] = "disable-javascript"; |
| 203 | 203 |
| 204 // Don't kill a child process when it sends a bad IPC message. Apart |
| 205 // from testing, it is a bad idea from a security perspective to enable |
| 206 // this switch. |
| 207 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; |
| 208 |
| 204 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). | 209 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). |
| 205 const char kDisableLegacyEncryptedMedia[] = "disable-legacy-encrypted-media"; | 210 const char kDisableLegacyEncryptedMedia[] = "disable-legacy-encrypted-media"; |
| 206 | 211 |
| 207 // Disable LocalStorage. | 212 // Disable LocalStorage. |
| 208 const char kDisableLocalStorage[] = "disable-local-storage"; | 213 const char kDisableLocalStorage[] = "disable-local-storage"; |
| 209 | 214 |
| 210 // Force logging to be disabled. Logging is enabled by default in debug | 215 // Force logging to be disabled. Logging is enabled by default in debug |
| 211 // builds. | 216 // builds. |
| 212 const char kDisableLogging[] = "disable-logging"; | 217 const char kDisableLogging[] = "disable-logging"; |
| 213 | 218 |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 #endif | 939 #endif |
| 935 | 940 |
| 936 #if defined(USE_AURA) | 941 #if defined(USE_AURA) |
| 937 // Forces usage of the test compositor. Needed to run ui tests on bots. | 942 // Forces usage of the test compositor. Needed to run ui tests on bots. |
| 938 extern const char kTestCompositor[] = "test-compositor"; | 943 extern const char kTestCompositor[] = "test-compositor"; |
| 939 #endif | 944 #endif |
| 940 | 945 |
| 941 // Don't dump stuff here, follow the same order as the header. | 946 // Don't dump stuff here, follow the same order as the header. |
| 942 | 947 |
| 943 } // namespace switches | 948 } // namespace switches |
| OLD | NEW |