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

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' 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..5508a9e1b4e70cb097d61e6fddcccc01d6a2ce9c
--- /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. */
pasko 2016/04/04 17:04:22 C++ style comments necessary here.
gabadie 2016/04/04 19:42:50 Done.
+const int kDefaultPrerenderLifeExpectancyMinutes = 5;
+
+/* Offline originated prerenders have an higher life expectancy to have more
pasko 2016/04/04 17:04:22 And here too - C++ style comments.
gabadie 2016/04/04 19:42:50 Done.
+ * 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