diff options
Diffstat (limited to 'chrome/common/chrome_switches.cc')
-rw-r--r-- | chrome/common/chrome_switches.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 51b273b..bffa62f 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -854,6 +854,13 @@ const char kNoExperiments[] = "no-experiments"; // you're for some reason tempted to pass them both. const char kNoFirstRun[] = "no-first-run"; +// Support a separate switch that enables the v8 playback extension. +// The extension causes javascript calls to Date.now() and Math.random() +// to return consistent values, such that subsequent loads of the same +// page will result in consistent js-generated data and XHR requests. +// Pages may still be able to generate inconsistent data from plugins. +const char kNoJsRandomness[] = "no-js-randomness"; + // Starts the browser outside of managed mode. const char kNoManaged[] = "no-managed"; @@ -937,6 +944,10 @@ const char kPackExtensionKey[] = "pack-extension-key"; // Specifies the path to the user data folder for the parent profile. const char kParentProfile[] = "parent-profile"; +// Read previously recorded data from the cache. Only cached data is read. +// See kRecordMode. +const char kPlaybackMode[] = "playback-mode"; + // Controls the PPAPI Flash field trial. Valid values are defined below. If an // unknown value is supplied on the command line, the switch is ignored. // TODO(yzshen): Remove this flag when the field trial is over. @@ -1040,6 +1051,12 @@ const char kProxyServer[] = "proxy-server"; // NOTE: This is only implemented for Views. const char kPurgeMemoryButton[] = "purge-memory-button"; +// Chrome supports a playback and record mode. Record mode saves *everything* +// to the cache. Playback mode reads data exclusively from the cache. This +// allows us to record a session into the cache and then replay it at will. +// See also kPlaybackMode. +const char kRecordMode[] = "record-mode"; + // Reloads pages that have been killed when they are next focused by the user. const char kReloadKilledTabs[] = "reload-killed-tabs"; |