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

Unified Diff: content/child/weburlresponse_extradata_impl.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/child/weburlresponse_extradata_impl.h
diff --git a/content/child/weburlresponse_extradata_impl.h b/content/child/weburlresponse_extradata_impl.h
index 000c9baa52a41008a78a3c6be824105b5a603c55..10f6f312fa01c7ca5c39fdb0b0d9bc4f58f32c42 100644
--- a/content/child/weburlresponse_extradata_impl.h
+++ b/content/child/weburlresponse_extradata_impl.h
@@ -68,8 +68,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; }
+ int previews_state() const { return previews_state_; }
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
+ void set_previews_state(int previews_state) {
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
+ previews_state_ = previews_state;
+ }
net::EffectiveConnectionType effective_connection_type() const {
return effective_connection_type_;
@@ -86,7 +88,7 @@ class CONTENT_EXPORT WebURLResponseExtraDataImpl :
bool was_alpn_negotiated_;
net::HttpResponseInfo::ConnectionInfo connection_info_;
bool was_alternate_protocol_available_;
- bool is_using_lofi_;
+ int previews_state_;
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
net::EffectiveConnectionType effective_connection_type_;
DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl);

Powered by Google App Engine
This is Rietveld 408576698