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

Unified Diff: content/public/common/resource_response_info.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/public/common/resource_response.cc ('k') | content/public/common/resource_response_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/resource_response_info.h
diff --git a/content/public/common/resource_response_info.h b/content/public/common/resource_response_info.h
index ca38798f1fa903e76f10b4f749850a23aa311fa0..386ab96922217ac890decefd77e13a455e382eef 100644
--- a/content/public/common/resource_response_info.h
+++ b/content/public/common/resource_response_info.h
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "content/common/content_export.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/resource_devtools_info.h"
#include "net/base/host_port_pair.h"
#include "net/base/load_timing_info.h"
@@ -141,8 +142,9 @@ struct CONTENT_EXPORT ResourceResponseInfo {
// the ServiceWorker. Empty if the response isn't from the CacheStorage.
std::string cache_storage_cache_name;
- // Whether or not the request was for a LoFi version of the resource.
- bool is_using_lofi;
+ // A bitmask of potentially several Previews optimizations that the resource
+ // could have requested.
+ PreviewsState previews_state;
// Effective connection type when the resource was fetched. This is populated
// only for responses that correspond to main frame requests.
« no previous file with comments | « content/public/common/resource_response.cc ('k') | content/public/common/resource_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698