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

Unified Diff: content/public/browser/resource_dispatcher_host_delegate.cc

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/public/browser/resource_dispatcher_host_delegate.cc
diff --git a/content/public/browser/resource_dispatcher_host_delegate.cc b/content/public/browser/resource_dispatcher_host_delegate.cc
index 1866eb83bdd45a61785db3267a9570930045305f..a8b55b2993201aa70d55af3d9c0647317b6d5f38 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.cc
+++ b/content/public/browser/resource_dispatcher_host_delegate.cc
@@ -87,10 +87,10 @@ void ResourceDispatcherHostDelegate::RequestComplete(
void ResourceDispatcherHostDelegate::RequestComplete(
net::URLRequest* url_request) {}
-bool ResourceDispatcherHostDelegate::ShouldEnableLoFiMode(
+PreviewsState ResourceDispatcherHostDelegate::GetPreviewsState(
const net::URLRequest& url_request,
content::ResourceContext* resource_context) {
- return false;
+ return PREVIEWS_UNSPECIFIED;
}
NavigationData* ResourceDispatcherHostDelegate::GetNavigationData(

Powered by Google App Engine
This is Rietveld 408576698