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

Unified Diff: content/common/resource_request.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: remove 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/common/resource_request.h
diff --git a/content/common/resource_request.h b/content/common/resource_request.h
index 0f5651fadff17f0ce9650188809c70f0fa0950e0..5d391bb4f4757406216585887f7e4861fdc83cbc 100644
--- a/content/common/resource_request.h
+++ b/content/common/resource_request.h
@@ -174,9 +174,9 @@ struct CONTENT_EXPORT ResourceRequest {
// Whether to intercept headers to pass back to the renderer.
bool report_raw_headers = false;
- // Whether or not to request a LoFi version of the resource or let the browser
- // decide.
- LoFiState lofi_state = LOFI_UNSPECIFIED;
+ // Whether or not to request a Preview version of the resource or let the
+ // browser decide. A value of zero indicates to let the browser decide.
+ int previews_state = 0;
// PlzNavigate: the stream url associated with a navigation. Used to get
// access to the body of the response that has already been fetched by the

Powered by Google App Engine
This is Rietveld 408576698