summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/app/generated_resources.grd6
-rw-r--r--chrome/browser/about_flags.cc7
-rw-r--r--chrome/common/chrome_switches.cc3
-rw-r--r--chrome/common/chrome_switches.h1
4 files changed, 17 insertions, 0 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 921286b..8342f80 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -4100,6 +4100,12 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_DNS_SERVER_DESCRIPTION" desc="">
User specified DNS server, which Chrome will use for DNS resolutions rather than the system defaults.
</message>
+ <message name="IDS_FLAGS_PAGE_PRERENDER_NAME" desc="">
+ Web Page Prerendering.
+ </message>
+ <message name="IDS_FLAGS_PAGE_PRERENDER_DESCRIPTION" desc="">
+ Speculatively prerenders complete webpages in the background for a faster browsing experience.
+ </message>
<message name="IDS_FLAGS_CONFIRM_TO_QUIT_NAME" desc="Name of the 'Confirm to Quit' lab.">
Confirm to Quit
</message>
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 5558d36..2d13eb2 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -151,6 +151,13 @@ const Experiment kExperiments[] = {
switches::kDnsServer
},
{
+ "page-prerender",
+ IDS_FLAGS_PAGE_PRERENDER_NAME,
+ IDS_FLAGS_PAGE_PRERENDER_DESCRIPTION,
+ kOsAll,
+ switches::kEnablePagePrerender
+ },
+ {
"confirm-to-quit", // Do not change; see above.
IDS_FLAGS_CONFIRM_TO_QUIT_NAME,
IDS_FLAGS_CONFIRM_TO_QUIT_DESCRIPTION,
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index fb84f14..15667ab 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -464,6 +464,9 @@ const char kEnableRemoting[] = "enable-remoting";
const char kEnableResourceContentSettings[] =
"enable-resource-content-settings";
+// Enable speculative prerendering of pages.
+const char kEnablePagePrerender[] = "enable-page-prerender";
+
// Enable speculative TCP/IP preconnection.
const char kEnablePreconnect[] = "enable-preconnect";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 1b8c745..694304a 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -139,6 +139,7 @@ extern const char kEnableMonitorProfile[];
extern const char kEnableNaCl[];
extern const char kEnableNaClDebug[];
extern const char kEnableNativeWebWorkers[];
+extern const char kEnablePagePrerender[];
extern const char kEnablePreconnect[];
extern const char kEnablePredictiveInstant[];
extern const char kEnablePreparsedJsCaching[];