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 "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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 105 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
106 // unload handlers on a page to prevent the tab from closing, but the Task | 106 // unload handlers on a page to prevent the tab from closing, but the Task |
107 // Manager can be used to terminate the offending process in this case. | 107 // Manager can be used to terminate the offending process in this case. |
108 const char kDisableHangMonitor[] = "disable-hang-monitor"; | 108 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
109 | 109 |
110 // Disable the thread that crashes the GPU process if it stops responding to | 110 // Disable the thread that crashes the GPU process if it stops responding to |
111 // messages. | 111 // messages. |
112 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; | 112 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; |
113 | 113 |
114 // Disable the Indexed Database API. | |
115 const char kDisableIndexedDatabase[] = "disable-indexed-database"; | |
116 | |
117 // Prevent Java from running. | 114 // Prevent Java from running. |
118 const char kDisableJava[] = "disable-java"; | 115 const char kDisableJava[] = "disable-java"; |
119 | 116 |
120 // Don't execute JavaScript (browser JS like the new tab page still runs). | 117 // Don't execute JavaScript (browser JS like the new tab page still runs). |
121 const char kDisableJavaScript[] = "disable-javascript"; | 118 const char kDisableJavaScript[] = "disable-javascript"; |
122 | 119 |
123 // Disable JavaScript I18N API. | 120 // Disable JavaScript I18N API. |
124 const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; | 121 const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; |
125 | 122 |
126 // Disable LocalStorage. | 123 // Disable LocalStorage. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 195 |
199 // Enable the JavaScript Pointer Lock API. | 196 // Enable the JavaScript Pointer Lock API. |
200 const char kEnablePointerLock[] = "enable-pointer-lock"; | 197 const char kEnablePointerLock[] = "enable-pointer-lock"; |
201 | 198 |
202 // Enable the Gamepad API | 199 // Enable the Gamepad API |
203 const char kEnableGamepad[] = "enable-gamepad"; | 200 const char kEnableGamepad[] = "enable-gamepad"; |
204 | 201 |
205 // Enable the GPU plugin and Pepper 3D rendering. | 202 // Enable the GPU plugin and Pepper 3D rendering. |
206 const char kEnableGPUPlugin[] = "enable-gpu-plugin"; | 203 const char kEnableGPUPlugin[] = "enable-gpu-plugin"; |
207 | 204 |
| 205 // Allow web workers to access the Indexed Database API. |
| 206 const char kEnableIndexedDBForWorkers[] = "enable-indexeddb-for-workers"; |
| 207 |
208 // Force logging to be enabled. Logging is disabled by default in release | 208 // Force logging to be enabled. Logging is disabled by default in release |
209 // builds. | 209 // builds. |
210 const char kEnableLogging[] = "enable-logging"; | 210 const char kEnableLogging[] = "enable-logging"; |
211 | 211 |
212 // Enables Media Source API on <audio>/<video> elements. | 212 // Enables Media Source API on <audio>/<video> elements. |
213 const char kEnableMediaSource[] = "enable-media-source"; | 213 const char kEnableMediaSource[] = "enable-media-source"; |
214 | 214 |
215 // Enable media stream in WebKit. | 215 // Enable media stream in WebKit. |
216 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#mediastr
eam | 216 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#mediastr
eam |
217 const char kEnableMediaStream[] = "enable-media-stream"; | 217 const char kEnableMediaStream[] = "enable-media-stream"; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 // instead of NSS for SSL. | 546 // instead of NSS for SSL. |
547 const char kUseSystemSSL[] = "use-system-ssl"; | 547 const char kUseSystemSSL[] = "use-system-ssl"; |
548 #endif | 548 #endif |
549 | 549 |
550 #if !defined(OFFICIAL_BUILD) | 550 #if !defined(OFFICIAL_BUILD) |
551 // Causes the renderer process to throw an assertion on launch. | 551 // Causes the renderer process to throw an assertion on launch. |
552 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; | 552 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; |
553 #endif | 553 #endif |
554 | 554 |
555 } // namespace switches | 555 } // namespace switches |
OLD | NEW |