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

Unified Diff: content/browser/loader/resource_request_info_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/browser/loader/resource_request_info_impl.h
diff --git a/content/browser/loader/resource_request_info_impl.h b/content/browser/loader/resource_request_info_impl.h
index 18d0089837205f266110f32dc52085b5b3093e24..b5f193c7e5f967d9eae3cc217f015042d48ecec5 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -70,7 +70,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
ResourceContext* context,
bool report_raw_headers,
bool is_async,
- bool is_using_lofi,
+ int previews_state,
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
const std::string& original_headers,
const scoped_refptr<ResourceRequestBodyImpl> body,
bool initiated_in_secure_context);
@@ -98,7 +98,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
int* render_frame_id) const override;
bool IsAsync() const override;
bool IsDownload() const override;
- bool IsUsingLoFi() const override;
+ int GetPreviewsState() const override;
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
bool ShouldReportRawHeaders() const;
NavigationUIData* GetNavigationUIData() const override;
@@ -233,7 +233,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
ResourceContext* context_;
bool report_raw_headers_;
bool is_async_;
- bool is_using_lofi_;
+ int previews_state_;
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
const std::string original_headers_;
scoped_refptr<ResourceRequestBodyImpl> body_;
bool initiated_in_secure_context_;

Powered by Google App Engine
This is Rietveld 408576698