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

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: rebase 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..25d36c9f3d50157e1d36b9a6d58c7659d65b2390 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.cc
+++ b/content/public/browser/resource_dispatcher_host_delegate.cc
@@ -7,6 +7,7 @@
#include "content/public/browser/navigation_data.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/browser/stream_info.h"
+#include "content/public/common/previews_state.h"
nasko 2016/12/12 23:05:41 This include should also stay.
megjablon 2016/12/14 01:10:32 Same here. Added to the .h
#include "net/ssl/client_cert_store.h"
namespace content {
@@ -87,10 +88,10 @@ void ResourceDispatcherHostDelegate::RequestComplete(
void ResourceDispatcherHostDelegate::RequestComplete(
net::URLRequest* url_request) {}
-bool ResourceDispatcherHostDelegate::ShouldEnableLoFiMode(
+int 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