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

Unified Diff: chrome/browser/prerender/prerender_origin.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_origin.h
diff --git a/chrome/browser/prerender/prerender_origin.h b/chrome/browser/prerender/prerender_origin.h
index 60e3e0b12f3aa0e23b7d8baed2a5499f99f4ada2..42b9c785654095413ca7ffea1ee2b167981430f0 100644
--- a/chrome/browser/prerender/prerender_origin.h
+++ b/chrome/browser/prerender/prerender_origin.h
@@ -24,12 +24,20 @@ enum Origin {
ORIGIN_INSTANT = 11,
ORIGIN_LINK_REL_NEXT = 12,
ORIGIN_EXTERNAL_REQUEST_FORCED_CELLULAR = 13,
+ ORIGIN_OFFLINE = 14,
ORIGIN_MAX,
};
// Return a human-readable name for |origin|.
const char* NameFromOrigin(Origin origin);
+// Returns whether the origin can be prerendered regardless of the privacy
pasko 2016/04/04 17:04:22 These two functions are implementation detail of P
gabadie 2016/04/04 19:42:51 Done.
+// settings or cellular network.
pasko 2016/04/04 17:04:22 s/cellular network/network type/
gabadie 2016/04/04 19:42:51 Done.
+bool IsAlwaysPrerenderedOrigin(Origin origin);
+
+// Returns whether the origin should take care of the cellular network.
+bool IsCellularForcedOrigin(Origin origin);
pasko 2016/04/04 17:04:22 Forced prerender on cell networks is not a propert
gabadie 2016/04/04 19:42:51 Done.
+
} // namespace prerender
#endif // CHROME_BROWSER_PRERENDER_PRERENDER_ORIGIN_H_

Powered by Google App Engine
This is Rietveld 408576698