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

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

Issue 10117022: Cleanup of v8 extension stuff. Playback extension is only used in chrome, so move it to chrome\rend… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // Make plugin processes log their sent and received messages to VLOG(1). 414 // Make plugin processes log their sent and received messages to VLOG(1).
415 const char kLogPluginMessages[] = "log-plugin-messages"; 415 const char kLogPluginMessages[] = "log-plugin-messages";
416 416
417 // Causes the process to run as a NativeClient broker 417 // Causes the process to run as a NativeClient broker
418 // (used for launching NaCl loader processes on 64-bit Windows). 418 // (used for launching NaCl loader processes on 64-bit Windows).
419 const char kNaClBrokerProcess[] = "nacl-broker"; 419 const char kNaClBrokerProcess[] = "nacl-broker";
420 420
421 // Causes the process to run as a NativeClient loader. 421 // Causes the process to run as a NativeClient loader.
422 const char kNaClLoaderProcess[] = "nacl-loader"; 422 const char kNaClLoaderProcess[] = "nacl-loader";
423 423
424 // Support a separate switch that enables the v8 playback extension.
425 // The extension causes javascript calls to Date.now() and Math.random()
426 // to return consistent values, such that subsequent loads of the same
427 // page will result in consistent js-generated data and XHR requests.
428 // Pages may still be able to generate inconsistent data from plugins.
429 const char kNoJsRandomness[] = "no-js-randomness";
430
431 // Don't send HTTP-Referer headers. 424 // Don't send HTTP-Referer headers.
432 const char kNoReferrers[] = "no-referrers"; 425 const char kNoReferrers[] = "no-referrers";
433 426
434 // Disables the sandbox for all process types that are normally sandboxed. 427 // Disables the sandbox for all process types that are normally sandboxed.
435 const char kNoSandbox[] = "no-sandbox"; 428 const char kNoSandbox[] = "no-sandbox";
436 429
437 // Read previously recorded data from the cache. Only cached data is read.
438 // See kRecordMode.
439 const char kPlaybackMode[] = "playback-mode";
440
441 // Specifies a command that should be used to launch the plugin process. Useful 430 // Specifies a command that should be used to launch the plugin process. Useful
442 // for running the plugin process through purify or quantify. Ex: 431 // for running the plugin process through purify or quantify. Ex:
443 // --plugin-launcher="path\to\purify /Run=yes" 432 // --plugin-launcher="path\to\purify /Run=yes"
444 const char kPluginLauncher[] = "plugin-launcher"; 433 const char kPluginLauncher[] = "plugin-launcher";
445 434
446 // Tells the plugin process the path of the plugin to load 435 // Tells the plugin process the path of the plugin to load
447 const char kPluginPath[] = "plugin-path"; 436 const char kPluginPath[] = "plugin-path";
448 437
449 // Causes the process to run as a plugin subprocess. 438 // Causes the process to run as a plugin subprocess.
450 const char kPluginProcess[] = "plugin"; 439 const char kPluginProcess[] = "plugin";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 // for each site instance (i.e., group of pages from the same registered 472 // for each site instance (i.e., group of pages from the same registered
484 // domain with script connections to each other). 473 // domain with script connections to each other).
485 const char kProcessPerSite[] = "process-per-site"; 474 const char kProcessPerSite[] = "process-per-site";
486 475
487 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own 476 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
488 // renderer process. We default to using a renderer process for each 477 // renderer process. We default to using a renderer process for each
489 // site instance (i.e., group of pages from the same registered domain with 478 // site instance (i.e., group of pages from the same registered domain with
490 // script connections to each other). 479 // script connections to each other).
491 const char kProcessPerTab[] = "process-per-tab"; 480 const char kProcessPerTab[] = "process-per-tab";
492 481
493 // Chrome supports a playback and record mode. Record mode saves *everything*
494 // to the cache. Playback mode reads data exclusively from the cache. This
495 // allows us to record a session into the cache and then replay it at will.
496 // See also kPlaybackMode.
497 const char kRecordMode[] = "record-mode";
498
499 // The value of this switch determines whether the process is started as a 482 // The value of this switch determines whether the process is started as a
500 // renderer or plugin host. If it's empty, it's the browser. 483 // renderer or plugin host. If it's empty, it's the browser.
501 const char kProcessType[] = "type"; 484 const char kProcessType[] = "type";
502 485
503 // Register Pepper plugins (see pepper_plugin_registry.cc for its format). 486 // Register Pepper plugins (see pepper_plugin_registry.cc for its format).
504 const char kRegisterPepperPlugins[] = "register-pepper-plugins"; 487 const char kRegisterPepperPlugins[] = "register-pepper-plugins";
505 488
506 // Enables remote debug over HTTP on the specified port. 489 // Enables remote debug over HTTP on the specified port.
507 const char kRemoteDebuggingPort[] = "remote-debugging-port"; 490 const char kRemoteDebuggingPort[] = "remote-debugging-port";
508 491
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 extern const char kFlingTapSuppressMaxDown[] = "fling-tap-suppress-max-down"; 633 extern const char kFlingTapSuppressMaxDown[] = "fling-tap-suppress-max-down";
651 634
652 // Maximum time between mousedown and mouseup to be considered a tap. 635 // Maximum time between mousedown and mouseup to be considered a tap.
653 extern const char kFlingTapSuppressMaxGap[] = "fling-tap-suppress-max-gap"; 636 extern const char kFlingTapSuppressMaxGap[] = "fling-tap-suppress-max-gap";
654 637
655 // Forces usage of the test compositor. Needed to run ui tests on bots. 638 // Forces usage of the test compositor. Needed to run ui tests on bots.
656 extern const char kTestCompositor[] = "test-compositor"; 639 extern const char kTestCompositor[] = "test-compositor";
657 #endif 640 #endif
658 641
659 } // namespace switches 642 } // 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