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

Unified Diff: chrome/common/prerender_types.h

Issue 2179903005: [Prerender] Change IPC from bool to enum for more prerender modes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: comment Created 4 years, 5 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/common/prerender_types.h
diff --git a/chrome/common/prerender_types.h b/chrome/common/prerender_types.h
index 3ed3dd0fa07ebaf429732ecfd876044520e1f430..2d7a38007502c4ecc82757b380559e5055745ff0 100644
--- a/chrome/common/prerender_types.h
+++ b/chrome/common/prerender_types.h
@@ -14,6 +14,13 @@ enum PrerenderRelType {
PrerenderRelTypeNext = 0x2,
};
+enum PrerenderMode {
+ NO_PRERENDER = 0,
+ FULL_PRERENDER = 1, // Full rendering of the page.
+ PREFETCH_ONLY = 2, // Prefetch some network resources to warm up the cache.
+ PRERENDER_MODE_COUNT = 3
+};
+
} // namespace prerender
#endif // CHROME_COMMON_PRERENDER_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698