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

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: clean up comments 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..896d0659197328c0c09462c425fa7cc0d36d99a4 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"
#include "net/ssl/client_cert_store.h"
namespace content {
@@ -87,10 +88,11 @@ void ResourceDispatcherHostDelegate::RequestComplete(
void ResourceDispatcherHostDelegate::RequestComplete(
net::URLRequest* url_request) {}
-bool ResourceDispatcherHostDelegate::ShouldEnableLoFiMode(
+int ResourceDispatcherHostDelegate::GetPreviewsState(
+ int previews_state,
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