ipc/chromium/src/chrome/common/chrome_switches.cc

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #include "chrome/common/chrome_switches.h"
michael@0 6
michael@0 7 #include "base/base_switches.h"
michael@0 8
michael@0 9 namespace switches {
michael@0 10
michael@0 11 // Can't find the switch you are looking for? try looking in
michael@0 12 // base/base_switches.cc instead.
michael@0 13
michael@0 14 // Suppresses hang monitor dialogs in renderer processes.
michael@0 15 const wchar_t kDisableHangMonitor[] = L"disable-hang-monitor";
michael@0 16
michael@0 17 // Completely disables UMA metrics system.
michael@0 18 const wchar_t kDisableMetrics[] = L"disable-metrics";
michael@0 19
michael@0 20 // Enables the recording of metrics reports but disables reporting.
michael@0 21 // In contrast to kDisableMetrics, this executes all the code that a normal
michael@0 22 // client would use for reporting, except the report is dropped rather than sent
michael@0 23 // to the server. This is useful for finding issues in the metrics code during
michael@0 24 // UI and performance tests.
michael@0 25 const wchar_t kMetricsRecordingOnly[] = L"metrics-recording-only";
michael@0 26
michael@0 27 // Causes the browser process to throw an assertion on startup.
michael@0 28 const wchar_t kBrowserAssertTest[] = L"assert-test";
michael@0 29
michael@0 30 // Causes the renderer process to throw an assertion on launch.
michael@0 31 const wchar_t kRendererAssertTest[] = L"renderer-assert-test";
michael@0 32
michael@0 33 // Causes the browser process to crash on startup.
michael@0 34 const wchar_t kBrowserCrashTest[] = L"crash-test";
michael@0 35
michael@0 36 // Causes the renderer process to crash on launch.
michael@0 37 const wchar_t kRendererCrashTest[] = L"renderer-crash-test";
michael@0 38
michael@0 39 // Causes the renderer process to display a dialog on launch.
michael@0 40 const wchar_t kRendererStartupDialog[] = L"renderer-startup-dialog";
michael@0 41
michael@0 42 // Causes the plugin process to display a dialog on launch.
michael@0 43 const wchar_t kPluginStartupDialog[] = L"plugin-startup-dialog";
michael@0 44
michael@0 45 // Specifies a command that should be used to launch the plugin process. Useful
michael@0 46 // for running the plugin process through purify or quantify. Ex:
michael@0 47 // --plugin-launcher="path\to\purify /Run=yes"
michael@0 48 const wchar_t kPluginLauncher[] = L"plugin-launcher";
michael@0 49
michael@0 50 // The value of this switch tells the child process which
michael@0 51 // IPC channel the browser expects to use to communicate with it.
michael@0 52 const wchar_t kProcessChannelID[] = L"channel";
michael@0 53
michael@0 54 // The value of this switch tells the app to listen for and broadcast
michael@0 55 // testing-related messages on IPC channel with the given ID.
michael@0 56 const wchar_t kTestingChannelID[] = L"testing-channel";
michael@0 57
michael@0 58 // The value of this switch specifies which page will be displayed
michael@0 59 // in newly-opened tabs. We need this for testing purposes so
michael@0 60 // that the UI tests don't depend on what comes up for http://google.com.
michael@0 61 const wchar_t kHomePage[] = L"homepage";
michael@0 62
michael@0 63 // Causes the process to run as renderer instead of as browser.
michael@0 64 const wchar_t kRendererProcess[] = L"renderer";
michael@0 65
michael@0 66 // Path to the exe to run for the renderer and plugin subprocesses.
michael@0 67 const wchar_t kBrowserSubprocessPath[] = L"browser-subprocess-path";
michael@0 68
michael@0 69 // Causes the process to run as a plugin subprocess.
michael@0 70 const wchar_t kPluginProcess[] = L"plugin";
michael@0 71
michael@0 72 // Causes the process to run as a worker subprocess.
michael@0 73 const wchar_t kWorkerProcess[] = L"worker";
michael@0 74
michael@0 75 // Runs the renderer and plugins in the same process as the browser
michael@0 76 const wchar_t kSingleProcess[] = L"single-process";
michael@0 77
michael@0 78 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
michael@0 79 // renderer process. We default to using a renderer process for each
michael@0 80 // site instance (i.e., group of pages from the same registered domain with
michael@0 81 // script connections to each other).
michael@0 82 const wchar_t kProcessPerTab[] = L"process-per-tab";
michael@0 83
michael@0 84 // Runs a single process for each site (i.e., group of pages from the same
michael@0 85 // registered domain) the user visits. We default to using a renderer process
michael@0 86 // for each site instance (i.e., group of pages from the same registered
michael@0 87 // domain with script connections to each other).
michael@0 88 const wchar_t kProcessPerSite[] = L"process-per-site";
michael@0 89
michael@0 90 // Runs plugins inside the renderer process
michael@0 91 const wchar_t kInProcessPlugins[] = L"in-process-plugins";
michael@0 92
michael@0 93 // Runs the renderer outside the sandbox.
michael@0 94 const wchar_t kNoSandbox[] = L"no-sandbox";
michael@0 95
michael@0 96 // Runs the plugin processes inside the sandbox.
michael@0 97 const wchar_t kSafePlugins[] = L"safe-plugins";
michael@0 98
michael@0 99 // Excludes these plugins from the plugin sandbox.
michael@0 100 // This is a comma-separated list of plugin library names and activex clsid.
michael@0 101 const wchar_t kTrustedPlugins[] = L"trusted-plugins";
michael@0 102
michael@0 103 // Runs the security test for the sandbox.
michael@0 104 const wchar_t kTestSandbox[] = L"test-sandbox";
michael@0 105
michael@0 106 // Specifies the user data directory, which is where the browser will look
michael@0 107 // for all of its state.
michael@0 108 const wchar_t kUserDataDir[] = L"user-data-dir";
michael@0 109
michael@0 110 // Specifies the plugin data directory, which is where plugins (Gears
michael@0 111 // specifically) will store its state.
michael@0 112 const wchar_t kPluginDataDir[] = L"plugin-data-dir";
michael@0 113
michael@0 114 // Use a specific disk cache location, rather than one derived from the
michael@0 115 // UserDatadir.
michael@0 116 const wchar_t kDiskCacheDir[] = L"disk-cache-dir";
michael@0 117
michael@0 118 // Whether the multiple profiles feature based on the user-data-dir flag is
michael@0 119 // enabled or not.
michael@0 120 const wchar_t kEnableUserDataDirProfiles[] = L"enable-udd-profiles";
michael@0 121
michael@0 122 // Specifies the path to the user data folder for the parent profile.
michael@0 123 const wchar_t kParentProfile[] = L"parent-profile";
michael@0 124
michael@0 125 // Specifies that the associated value should be launched in "application" mode.
michael@0 126 const wchar_t kApp[] = L"app";
michael@0 127
michael@0 128 // Specifies if the dom_automation_controller_ needs to be bound in the
michael@0 129 // renderer. This binding happens on per-frame basis and hence can potentially
michael@0 130 // be a performance bottleneck. One should only enable it when automating
michael@0 131 // dom based tests.
michael@0 132 const wchar_t kDomAutomationController[] = L"dom-automation";
michael@0 133
michael@0 134 // Tells the plugin process the path of the plugin to load
michael@0 135 const wchar_t kPluginPath[] = L"plugin-path";
michael@0 136
michael@0 137 // A string used to override the default user agent with a custom one.
michael@0 138 const wchar_t kUserAgent[] = L"user-agent";
michael@0 139
michael@0 140 // Specifies the flags passed to JS engine
michael@0 141 const wchar_t kJavaScriptFlags[] = L"js-flags";
michael@0 142
michael@0 143 // The Country we should use. This is normally obtained from the operating
michael@0 144 // system during first run and cached in the preferences afterwards. This is a
michael@0 145 // string value, the 2 letter code from ISO 3166-1.
michael@0 146 const wchar_t kCountry[] = L"country";
michael@0 147
michael@0 148 // The language file that we want to try to open. Of the form
michael@0 149 // language[-country] where language is the 2 letter code from ISO-639.
michael@0 150 const wchar_t kLang[] = L"lang";
michael@0 151
michael@0 152 // Will add kDebugOnStart to every child processes. If a value is passed, it
michael@0 153 // will be used as a filter to determine if the child process should have the
michael@0 154 // kDebugOnStart flag passed on or not.
michael@0 155 const wchar_t kDebugChildren[] = L"debug-children";
michael@0 156
michael@0 157 // Will add kWaitForDebugger to every child processes. If a value is passed, it
michael@0 158 // will be used as a filter to determine if the child process should have the
michael@0 159 // kWaitForDebugger flag passed on or not.
michael@0 160 const wchar_t kWaitForDebuggerChildren[] = L"wait-for-debugger-children";
michael@0 161
michael@0 162 // Will filter log messages to show only the messages that are prefixed
michael@0 163 // with the specified value
michael@0 164 const wchar_t kLogFilterPrefix[] = L"log-filter-prefix";
michael@0 165
michael@0 166 // Force logging to be enabled. Logging is disabled by default in release
michael@0 167 // builds.
michael@0 168 const wchar_t kEnableLogging[] = L"enable-logging";
michael@0 169
michael@0 170 // Force logging to be disabled. Logging is enabled by default in debug
michael@0 171 // builds.
michael@0 172 const wchar_t kDisableLogging[] = L"disable-logging";
michael@0 173
michael@0 174 // Sets the minimum log level. Valid values are from 0 to 3:
michael@0 175 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
michael@0 176 const wchar_t kLoggingLevel[] = L"log-level";
michael@0 177
michael@0 178 // Make plugin processes log their sent and received messages to CHROMIUM_LOG(INFO).
michael@0 179 const wchar_t kLogPluginMessages[] = L"log-plugin-messages";
michael@0 180
michael@0 181 // Dump any accumualted histograms to the log when browser terminates (requires
michael@0 182 // logging to be enabled to really do anything). Used by developers and test
michael@0 183 // scripts.
michael@0 184 const wchar_t kDumpHistogramsOnExit[] = L"dump-histograms-on-exit";
michael@0 185
michael@0 186 // enable remote debug / automation shell on the specified port
michael@0 187 const wchar_t kRemoteShellPort[] = L"remote-shell-port";
michael@0 188
michael@0 189 // Runs un-installation steps that were done by chrome first-run.
michael@0 190 const wchar_t kUninstall[] = L"uninstall";
michael@0 191
michael@0 192 // Number of entries to show in the omnibox popup.
michael@0 193 const wchar_t kOmniBoxPopupCount[] = L"omnibox-popup-count";
michael@0 194
michael@0 195 // The value of this switch tells the app to listen for and broadcast
michael@0 196 // automation-related messages on IPC channel with the given ID.
michael@0 197 const wchar_t kAutomationClientChannelID[] = L"automation-channel";
michael@0 198
michael@0 199 // Indicates the last session should be restored on startup. This overrides
michael@0 200 // the preferences value and is primarily intended for testing. The value of
michael@0 201 // this switch is the number of tabs to wait until loaded before
michael@0 202 // 'load completed' is sent to the ui_test.
michael@0 203 const wchar_t kRestoreLastSession[] = L"restore-last-session";
michael@0 204
michael@0 205 // Chrome supports a playback and record mode. Record mode saves *everything*
michael@0 206 // to the cache. Playback mode reads data exclusively from the cache. This
michael@0 207 // allows us to record a session into the cache and then replay it at will.
michael@0 208 const wchar_t kRecordMode[] = L"record-mode";
michael@0 209 const wchar_t kPlaybackMode[] = L"playback-mode";
michael@0 210
michael@0 211 // Don't record/playback events when using record & playback.
michael@0 212 const wchar_t kNoEvents[] = L"no-events";
michael@0 213
michael@0 214 // Support a separate switch that enables the v8 playback extension.
michael@0 215 // The extension causes javascript calls to Date.now() and Math.random()
michael@0 216 // to return consistent values, such that subsequent loads of the same
michael@0 217 // page will result in consistent js-generated data and XHR requests.
michael@0 218 // Pages may still be able to generate inconsistent data from plugins.
michael@0 219 const wchar_t kNoJsRandomness[] = L"no-js-randomness";
michael@0 220
michael@0 221 // Make Windows happy by allowing it to show "Enable access to this program"
michael@0 222 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This
michael@0 223 // only shows an error box because the only way to hide Chrome is by
michael@0 224 // uninstalling it.
michael@0 225 const wchar_t kHideIcons[] = L"hide-icons";
michael@0 226
michael@0 227 const wchar_t kShowIcons[] = L"show-icons";
michael@0 228
michael@0 229 // Make Chrome default browser
michael@0 230 const wchar_t kMakeDefaultBrowser[] = L"make-default-browser";
michael@0 231
michael@0 232 // Use a specified proxy server, overrides system settings. This switch only
michael@0 233 // affects HTTP and HTTPS requests.
michael@0 234 const wchar_t kProxyServer[] = L"proxy-server";
michael@0 235
michael@0 236 // Use WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is
michael@0 237 // to use Chromium's network stack to fetch, and V8 to evaluate.
michael@0 238 const wchar_t kWinHttpProxyResolver[] = L"winhttp-proxy-resolver";
michael@0 239
michael@0 240 // Chrome will support prefetching of DNS information. Until this becomes
michael@0 241 // the default, we'll provide a command line switch.
michael@0 242 extern const wchar_t kDnsLogDetails[] = L"dns-log-details";
michael@0 243 extern const wchar_t kDnsPrefetchDisable[] = L"dns-prefetch-disable";
michael@0 244
michael@0 245 // Enables support to debug printing subsystem.
michael@0 246 const wchar_t kDebugPrint[] = L"debug-print";
michael@0 247
michael@0 248 // Allow initialization of all activex controls. This is only to help website
michael@0 249 // developers test their controls to see if they are compatible in Chrome.
michael@0 250 // Note there's a duplicate value in activex_shared.cc (to avoid
michael@0 251 // dependency on chrome module). Please change both locations at the same time.
michael@0 252 const wchar_t kAllowAllActiveX[] = L"allow-all-activex";
michael@0 253
michael@0 254 // Browser flag to disable the web inspector for all renderers.
michael@0 255 const wchar_t kDisableDevTools[] = L"disable-dev-tools";
michael@0 256
michael@0 257 // Enable web inspector for all windows, even if they're part of the browser.
michael@0 258 // Allows us to use our dev tools to debug browser windows itself.
michael@0 259 const wchar_t kAlwaysEnableDevTools[] = L"always-enable-dev-tools";
michael@0 260
michael@0 261 // Used to set the value of SessionRestore::num_tabs_to_load_. See
michael@0 262 // session_restore.h for details.
michael@0 263 const wchar_t kTabCountToLoadOnSessionRestore[] =
michael@0 264 L"tab-count-to-load-on-session-restore";
michael@0 265
michael@0 266 // Enable dynamic loading of the Memory Profiler DLL, which will trace
michael@0 267 // all memory allocations during the run.
michael@0 268 const wchar_t kMemoryProfiling[] = L"memory-profile";
michael@0 269
michael@0 270 // Configure Chrome's memory model.
michael@0 271 // Does chrome really need multiple memory models? No. But we get a lot
michael@0 272 // of concerns from individuals about how the changes work on *their*
michael@0 273 // system, and we need to be able to experiment with a few choices.
michael@0 274 const wchar_t kMemoryModel[] = L"memory-model";
michael@0 275
michael@0 276 // By default, cookies are not allowed on file://. They are needed in for
michael@0 277 // testing, for example page cycler and layout tests. See bug 1157243.
michael@0 278 const wchar_t kEnableFileCookies[] = L"enable-file-cookies";
michael@0 279
michael@0 280 // Start the browser maximized, regardless of any previous settings.
michael@0 281 const wchar_t kStartMaximized[] = L"start-maximized";
michael@0 282
michael@0 283 // Spawn threads to watch for excessive delays in specified message loops.
michael@0 284 // User should set breakpoints on Alarm() to examine problematic thread.
michael@0 285 // Usage: -enable-watchdog=[ui][io]
michael@0 286 // Order of the listed sub-arguments does not matter.
michael@0 287 const wchar_t kEnableWatchdog[] = L"enable-watchdog";
michael@0 288
michael@0 289 // Display the First Run experience when the browser is started, regardless of
michael@0 290 // whether or not it's actually the first run.
michael@0 291 const wchar_t kFirstRun[] = L"first-run";
michael@0 292
michael@0 293 // Bypass the First Run experience when the browser is started, regardless of
michael@0 294 // whether or not it's actually the first run. Overrides kFirstRun in case
michael@0 295 // you're for some reason tempted to pass them both.
michael@0 296 const wchar_t kNoFirstRun[] = L"no-first-run";
michael@0 297
michael@0 298 // Enable histograming of tasks served by MessageLoop. See about:histograms/Loop
michael@0 299 // for results, which show frequency of messages on each thread, including APC
michael@0 300 // count, object signalling count, etc.
michael@0 301 const wchar_t kMessageLoopHistogrammer[] = L"message-loop-histogrammer";
michael@0 302
michael@0 303 // Perform importing from another browser. The value associated with this
michael@0 304 // setting encodes the target browser and what items to import.
michael@0 305 const wchar_t kImport[] = L"import";
michael@0 306
michael@0 307 // Change the DCHECKS to dump memory and continue instead of displaying error
michael@0 308 // dialog. This is valid only in Release mode when --enable-dcheck is
michael@0 309 // specified.
michael@0 310 const wchar_t kSilentDumpOnDCHECK[] = L"silent-dump-on-dcheck";
michael@0 311
michael@0 312 // Normally when the user attempts to navigate to a page that was the result of
michael@0 313 // a post we prompt to make sure they want to. This switch may be used to
michael@0 314 // disable that check. This switch is used during automated testing.
michael@0 315 const wchar_t kDisablePromptOnRepost[] = L"disable-prompt-on-repost";
michael@0 316
michael@0 317 // Disable pop-up blocking.
michael@0 318 const wchar_t kDisablePopupBlocking[] = L"disable-popup-blocking";
michael@0 319
michael@0 320 // Don't execute JavaScript (browser JS like the new tab page still runs).
michael@0 321 const wchar_t kDisableJavaScript[] = L"disable-javascript";
michael@0 322
michael@0 323 // Don't enforce the same-origin policy. (Used by people testing their sites.)
michael@0 324 const wchar_t kDisableWebSecurity[] = L"disable-web-security";
michael@0 325
michael@0 326 // Prevent Java from running.
michael@0 327 const wchar_t kDisableJava[] = L"disable-java";
michael@0 328
michael@0 329 // Prevent plugins from running.
michael@0 330 const wchar_t kDisablePlugins[] = L"disable-plugins";
michael@0 331
michael@0 332 // Prevent images from loading.
michael@0 333 const wchar_t kDisableImages[] = L"disable-images";
michael@0 334
michael@0 335 // Use the low fragmentation heap for the CRT.
michael@0 336 const wchar_t kUseLowFragHeapCrt[] = L"use-lf-heap";
michael@0 337
michael@0 338 #ifndef NDEBUG
michael@0 339 // Debug only switch to specify which gears plugin dll to load.
michael@0 340 const wchar_t kGearsPluginPathOverride[] = L"gears-plugin-path";
michael@0 341 #endif
michael@0 342
michael@0 343 // Enable the fastback page cache.
michael@0 344 const wchar_t kEnableFastback[] = L"enable-fastback";
michael@0 345
michael@0 346 // Allow loading of the javascript debugger UI from the filesystem.
michael@0 347 const wchar_t kJavaScriptDebuggerPath[] = L"javascript-debugger-path";
michael@0 348
michael@0 349 const wchar_t kDisableP13n[] = L"disable-p13n";
michael@0 350
michael@0 351 // Enable support for SDCH filtering (dictionary based expansion of content).
michael@0 352 // Optional argument is *the* only domain name that will have SDCH suppport.
michael@0 353 // Default is "-enable-sdch" to advertise SDCH on all domains.
michael@0 354 // Sample usage with argument: "-enable-sdch=.google.com"
michael@0 355 // SDCH is currently only supported server-side for searches on google.com.
michael@0 356 const wchar_t kSdchFilter[] = L"enable-sdch";
michael@0 357
michael@0 358 // Enable user script support.
michael@0 359 const wchar_t kEnableUserScripts[] = L"enable-user-scripts";
michael@0 360
michael@0 361 // Enable extensions.
michael@0 362 const wchar_t kEnableExtensions[] = L"enable-extensions";
michael@0 363
michael@0 364 // Install the extension specified in the argument. This is for MIME type
michael@0 365 // handling so that users can double-click on an extension.
michael@0 366 const wchar_t kInstallExtension[] = L"install-extension";
michael@0 367
michael@0 368 // Load an extension from the specified directory.
michael@0 369 const wchar_t kLoadExtension[] = L"load-extension";
michael@0 370
michael@0 371 // Load an NPAPI plugin from the specified path.
michael@0 372 const wchar_t kLoadPlugin[] = L"load-plugin";
michael@0 373
michael@0 374 // directory to locate user scripts in as an over-ride of the default
michael@0 375 const wchar_t kUserScriptsDir[] = L"user-scripts-dir";
michael@0 376
michael@0 377 // Causes the browser to launch directly in incognito mode.
michael@0 378 const wchar_t kIncognito[] = L"incognito";
michael@0 379
michael@0 380 // Turns on the accessibility in the renderer. Off by default until
michael@0 381 // http://b/issue?id=1432077 is fixed.
michael@0 382 const wchar_t kEnableRendererAccessibility[] = L"enable-renderer-accessibility";
michael@0 383
michael@0 384 // Pass the name of the current running automated test to Chrome.
michael@0 385 const wchar_t kTestName[] = L"test-name";
michael@0 386
michael@0 387 // On POSIX only: the contents of this flag are prepended to the renderer
michael@0 388 // command line. (Useful values might be "valgrind" or "gdb --args")
michael@0 389 const wchar_t kRendererCmdPrefix[] = L"renderer-cmd-prefix";
michael@0 390
michael@0 391 // Temparary option for new ftp implemetation.
michael@0 392 const wchar_t kNewFtp[] = L"new-ftp";
michael@0 393
michael@0 394 // On POSIX only: use FIFO for IPC channels so that "unrelated" process
michael@0 395 // can connect to a channel, provided it knows its name. For debugging purposes.
michael@0 396 const wchar_t kIPCUseFIFO[] = L"ipc-use-fifo";
michael@0 397
michael@0 398 // If this flag is set open out of process developer tools window instead of
michael@0 399 // Console Debugger when user clicks "Debug JavaScript".
michael@0 400 const wchar_t kEnableOutOfProcessDevTools[] = L"enable-oop-devtools";
michael@0 401
michael@0 402 // Enable HTML5 Worker support
michael@0 403 const wchar_t kEnableWebWorkers[] = L"enable-web-workers";
michael@0 404
michael@0 405 // Causes the worker process allocation to use as many processes as cores.
michael@0 406 const wchar_t kWebWorkerProcessPerCore[] = L"web-worker-process-per-core";
michael@0 407
michael@0 408 // Causes workers to run together in one process, depending on their domains.
michael@0 409 // Note this is duplicated in webworkerclient_impl.cc
michael@0 410 const wchar_t kWebWorkerShareProcesses[] = L"web-worker-share-processes";
michael@0 411
michael@0 412 // Enables experimental views under gtk.
michael@0 413 const wchar_t kViewsGtk[] = L"views-gtk";
michael@0 414
michael@0 415 // Enables the bookmark menu.
michael@0 416 const wchar_t kBookmarkMenu[] = L"bookmark-menu";
michael@0 417
michael@0 418 // Enables StatsTable, logging statistics to a global named shared memory table.
michael@0 419 const wchar_t kEnableStatsTable[] = L"enable-stats-table";
michael@0 420
michael@0 421 // Enables the Omnibox2 popup and functionality.
michael@0 422 const wchar_t kEnableOmnibox2[] = L"enable-omnibox2";
michael@0 423
michael@0 424 // Replaces the audio IPC layer for <audio> and <video> with a mock audio
michael@0 425 // device, useful when using remote desktop or machines without sound cards.
michael@0 426 // This is temporary until we fix the underlying problem.
michael@0 427 //
michael@0 428 // TODO(scherkus): remove --disable-audio when we have a proper fallback
michael@0 429 // mechanism.
michael@0 430 const wchar_t kDisableAudio[] = L"disable-audio";
michael@0 431
michael@0 432 // Replaces the buffered data source for <audio> and <video> with a simplified
michael@0 433 // resource loader that downloads the entire resource into memory.
michael@0 434 //
michael@0 435 // TODO(scherkus): remove --simple-data-source when our media resource loading
michael@0 436 // is cleaned up and playback testing completed.
michael@0 437 const wchar_t kSimpleDataSource[] = L"simple-data-source";
michael@0 438
michael@0 439 } // namespace switches

mercurial