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

Unified Diff: content/common/resource_request.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: fix ContentResourceProviderTest Created 3 years, 11 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
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/browser/resource_dispatcher_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_request.h
diff --git a/content/common/resource_request.h b/content/common/resource_request.h
index 0f5651fadff17f0ce9650188809c70f0fa0950e0..0103844b979ca480d608af2276b4291c6c9b97a4 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.
+ PreviewsState 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
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/browser/resource_dispatcher_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698