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

Unified Diff: content/common/resource_request.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/common/resource_request.h
diff --git a/content/common/resource_request.h b/content/common/resource_request.h
index 0f5651fadff17f0ce9650188809c70f0fa0950e0..c7d18d24885277b38354cdb2c8fce8ea63d70aa4 100644
--- a/content/common/resource_request.h
+++ b/content/common/resource_request.h
@@ -15,6 +15,7 @@
#include "content/common/resource_request_body_impl.h"
#include "content/common/service_worker/service_worker_types.h"
#include "content/public/common/appcache_info.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/request_context_frame_type.h"
#include "content/public/common/request_context_type.h"
#include "content/public/common/resource_type.h"
@@ -174,9 +175,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.
+ int previews_state = PREVIEWS_UNSPECIFIED;
// 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