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

Unified Diff: chrome/browser/prerender/prerender_constants.h

Issue 1854643002: Implement PrerenderManager::AddPrerenderForOffline() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses pasko's comments Created 4 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
Index: chrome/browser/prerender/prerender_constants.h
diff --git a/chrome/browser/prerender/prerender_constants.h b/chrome/browser/prerender/prerender_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..34e0b6acaacede1daf30f42363cf307dda2bdbf0
--- /dev/null
+++ b/chrome/browser/prerender/prerender_constants.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONSTANTS_H_
+#define CHROME_BROWSER_PRERENDER_PRERENDER_CONSTANTS_H_
+
+namespace prerender {
+
+// Most of the prerender are used in less than 5 minutes.
+const int kDefaultPrerenderLifeExpectancyMinutes = 5;
+
+// Offline originated prerenders have an higher life expectancy to have more
+// time to fully load web pages from slow network before the web content
+// snapshot.
+const int kOfflinePrerenderLifeExpectancyMinutes = 20;
+
+} // namespace prerender
+
+#endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698