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

Unified Diff: chrome/common/chrome_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
===================================================================
--- chrome/common/chrome_switches.cc (revision 132793)
+++ chrome/common/chrome_switches.cc (working copy)
@@ -854,6 +854,13 @@
// 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";
+
// Don't send hyperlink auditing pings
const char kNoPings[] = "no-pings";
@@ -934,6 +941,10 @@
// 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.
@@ -1037,6 +1048,12 @@
// 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";
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698