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

Unified Diff: content/public/browser/resource_request_info.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: add back previews_unspecified Created 4 years 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: content/public/browser/resource_request_info.h
diff --git a/content/public/browser/resource_request_info.h b/content/public/browser/resource_request_info.h
index bf67f59c9d0975800ada4fc9405e7fb5dff07c52..1b931a7fbae35e8b864e4015689dc5343dd1d2f6 100644
--- a/content/public/browser/resource_request_info.h
+++ b/content/public/browser/resource_request_info.h
@@ -49,7 +49,7 @@ class ResourceRequestInfo {
bool parent_is_main_frame,
bool allow_download,
bool is_async,
- bool is_using_lofi);
+ int previews_state);
nasko 2016/12/08 22:19:33 PreviewsState?
megjablon 2016/12/09 20:35:55 Done.
// Returns the associated RenderFrame for a given process. Returns false, if
// there is no associated RenderFrame. This method does not rely on the
@@ -158,8 +158,8 @@ class ResourceRequestInfo {
// Whether this is a download.
virtual bool IsDownload() const = 0;
- // Whether this request if using Lo-Fi mode.
- virtual bool IsUsingLoFi() const = 0;
+ // Returns the current state of Previews.
+ virtual int GetPreviewsState() const = 0;
// PlzNavigate
// Only used for navigations. Returns opaque data set by the embedder on the

Powered by Google App Engine
This is Rietveld 408576698