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

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: 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/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..da0b68f819a35dc06e7638702818146d48533bee 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -19,6 +19,7 @@
#include "content/common/url_loader.mojom.h"
#include "content/public/browser/navigation_ui_data.h"
#include "content/public/browser/resource_request_info.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/referrer.h"
#include "content/public/common/resource_type.h"
#include "net/base/load_states.h"
@@ -70,7 +71,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
ResourceContext* context,
bool report_raw_headers,
bool is_async,
- bool is_using_lofi,
+ PreviewsState previews_state,
const std::string& original_headers,
const scoped_refptr<ResourceRequestBodyImpl> body,
bool initiated_in_secure_context);
@@ -98,7 +99,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
int* render_frame_id) const override;
bool IsAsync() const override;
bool IsDownload() const override;
- bool IsUsingLoFi() const override;
+ PreviewsState GetPreviewsState() const override;
bool ShouldReportRawHeaders() const;
NavigationUIData* GetNavigationUIData() const override;
@@ -233,7 +234,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
ResourceContext* context_;
bool report_raw_headers_;
bool is_async_;
- bool is_using_lofi_;
+ PreviewsState previews_state_;
const std::string original_headers_;
scoped_refptr<ResourceRequestBodyImpl> body_;
bool initiated_in_secure_context_;

Powered by Google App Engine
This is Rietveld 408576698