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

Unified Diff: chrome/browser/prerender/prerender_manager.cc

Issue 6881113: Increase prerender max-age limit to 30 seconds from 20 seconds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/browser/prerender/prerender_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_manager.cc
diff --git a/chrome/browser/prerender/prerender_manager.cc b/chrome/browser/prerender/prerender_manager.cc
index 06507e0dee90c1684b74705d74a2a735680d0c42..c2d85e30c71d873895d338b82ece756f0a35e55f 100644
--- a/chrome/browser/prerender/prerender_manager.cc
+++ b/chrome/browser/prerender/prerender_manager.cc
@@ -26,6 +26,26 @@
namespace prerender {
+namespace {
+
+// Default maximum permitted elements to prerender.
+const unsigned int kDefaultMaxPrerenderElements = 1;
+
+// Default maximum age a prerendered element may have, in seconds.
+const int kDefaultMaxPrerenderAgeSeconds = 30;
+
+// Time window for which we will record windowed PLT's from the last
+// observed link rel=prefetch tag.
+const int kWindowDurationSeconds = 30;
+
+// Time interval at which periodic cleanups are performed.
+const int kPeriodicCleanupIntervalMs = 1000;
+
+// Time interval before a new prerender is allowed.
+const int kMinTimeBetweenPrerendersMs = 500;
+
+} // namespace
+
// static
int PrerenderManager::prerenders_per_session_count_ = 0;
« no previous file with comments | « chrome/browser/prerender/prerender_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698