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

Unified Diff: content/child/weburlresponse_extradata_impl.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/child/web_url_loader_impl.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/weburlresponse_extradata_impl.h
diff --git a/content/child/weburlresponse_extradata_impl.h b/content/child/weburlresponse_extradata_impl.h
index 000c9baa52a41008a78a3c6be824105b5a603c55..a87e87489298461a1e74252ba2fd83c30a2fadef 100644
--- a/content/child/weburlresponse_extradata_impl.h
+++ b/content/child/weburlresponse_extradata_impl.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "content/common/content_export.h"
+#include "content/public/common/previews_state.h"
#include "net/http/http_response_info.h"
#include "net/nqe/effective_connection_type.h"
#include "third_party/WebKit/public/platform/WebURLResponse.h"
@@ -68,8 +69,11 @@ class CONTENT_EXPORT WebURLResponseExtraDataImpl :
is_ftp_directory_listing_ = is_ftp_directory_listing;
}
- bool is_using_lofi() const { return is_using_lofi_; }
- void set_is_using_lofi(bool is_using_lofi) { is_using_lofi_ = is_using_lofi; }
+ // Returns a bitmask of potentially several Previews optimizations.
+ PreviewsState previews_state() const { return previews_state_; }
+ void set_previews_state(PreviewsState previews_state) {
+ previews_state_ = previews_state;
+ }
net::EffectiveConnectionType effective_connection_type() const {
return effective_connection_type_;
@@ -86,7 +90,7 @@ class CONTENT_EXPORT WebURLResponseExtraDataImpl :
bool was_alpn_negotiated_;
net::HttpResponseInfo::ConnectionInfo connection_info_;
bool was_alternate_protocol_available_;
- bool is_using_lofi_;
+ PreviewsState previews_state_;
net::EffectiveConnectionType effective_connection_type_;
DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl);
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698