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

Unified Diff: content/child/weburlresponse_extradata_impl.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: use PreviewsState everywhere 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/child/weburlresponse_extradata_impl.h
diff --git a/content/child/weburlresponse_extradata_impl.h b/content/child/weburlresponse_extradata_impl.h
index 000c9baa52a41008a78a3c6be824105b5a603c55..335ac967917914d5b3c7e56b6a8e4380e7373388 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,10 @@ 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; }
+ 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 +89,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);

Powered by Google App Engine
This is Rietveld 408576698