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

Unified Diff: content/public/browser/resource_request_info.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/public/browser/resource_dispatcher_host_delegate.cc ('k') | content/public/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/resource_request_info.h
diff --git a/content/public/browser/resource_request_info.h b/content/public/browser/resource_request_info.h
index bf67f59c9d0975800ada4fc9405e7fb5dff07c52..7f0d825d7f0060f4d70993db026c32f665f8a792 100644
--- a/content/public/browser/resource_request_info.h
+++ b/content/public/browser/resource_request_info.h
@@ -8,6 +8,7 @@
#include "base/callback_forward.h"
#include "content/common/content_export.h"
#include "content/public/browser/global_request_id.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/resource_type.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
@@ -49,7 +50,7 @@ class ResourceRequestInfo {
bool parent_is_main_frame,
bool allow_download,
bool is_async,
- bool is_using_lofi);
+ PreviewsState previews_state);
// Returns the associated RenderFrame for a given process. Returns false, if
// there is no associated RenderFrame. This method does not rely on the
@@ -158,8 +159,8 @@ class ResourceRequestInfo {
// Whether this is a download.
virtual bool IsDownload() const = 0;
- // Whether this request if using Lo-Fi mode.
- virtual bool IsUsingLoFi() const = 0;
+ // Returns the current state of Previews.
+ virtual PreviewsState GetPreviewsState() const = 0;
// PlzNavigate
// Only used for navigations. Returns opaque data set by the embedder on the
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.cc ('k') | content/public/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698