Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: content/public/common/content_switches.cc

Issue 10810034: disable web audio by default on android and add switches to enable it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // TODO(primiano): Remove the two switches below when the URL becomes public. 203 // TODO(primiano): Remove the two switches below when the URL becomes public.
204 // Specifies the webservice URL for continuous speech recognition. 204 // Specifies the webservice URL for continuous speech recognition.
205 const char kSpeechRecognitionWebserviceURL[] = "speech-service"; 205 const char kSpeechRecognitionWebserviceURL[] = "speech-service";
206 206
207 // Specifies the request key for the continuous speech recognition webservice. 207 // Specifies the request key for the continuous speech recognition webservice.
208 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; 208 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key";
209 209
210 // Disables animation on the compositor thread. 210 // Disables animation on the compositor thread.
211 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; 211 const char kDisableThreadedAnimation[] = "disable-threaded-animation";
212 212
213 #if defined(OS_ANDROID)
214 // Enable web audio API.
215 const char kEnableWebAudio[] = "enable-webaudio";
216 #else
213 // Disable web audio API. 217 // Disable web audio API.
214 const char kDisableWebAudio[] = "disable-webaudio"; 218 const char kDisableWebAudio[] = "disable-webaudio";
219 #endif
215 220
216 // Don't enforce the same-origin policy. (Used by people testing their sites.) 221 // Don't enforce the same-origin policy. (Used by people testing their sites.)
217 const char kDisableWebSecurity[] = "disable-web-security"; 222 const char kDisableWebSecurity[] = "disable-web-security";
218 223
219 // Disable Web Sockets support. 224 // Disable Web Sockets support.
220 const char kDisableWebSockets[] = "disable-web-sockets"; 225 const char kDisableWebSockets[] = "disable-web-sockets";
221 226
222 // Disables WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS. 227 // Disables WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS.
223 const char kDisableXSSAuditor[] = "disable-xss-auditor"; 228 const char kDisableXSSAuditor[] = "disable-xss-auditor";
224 229
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 const char kDefaultTileWidth[] = "default-tile-width"; 671 const char kDefaultTileWidth[] = "default-tile-width";
667 const char kDefaultTileHeight[] = "default-tile-height"; 672 const char kDefaultTileHeight[] = "default-tile-height";
668 673
669 // Sets the width and height above which a composited layer will get tiled. 674 // Sets the width and height above which a composited layer will get tiled.
670 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; 675 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
671 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; 676 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
672 677
673 const char kFixedPositionCreatesStackingContext[] 678 const char kFixedPositionCreatesStackingContext[]
674 = "fixed-position-creates-stacking-context"; 679 = "fixed-position-creates-stacking-context";
675 } // namespace switches 680 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698