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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke comments Created 5 years, 3 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
Index: content/public/browser/resource_dispatcher_host_delegate.h
diff --git a/content/public/browser/resource_dispatcher_host_delegate.h b/content/public/browser/resource_dispatcher_host_delegate.h
index 181962eee2d3f5ea5f5ce9313e7b87a065cff087..03b2318f0ab996134fc7e922c7248fc40d96cc8d 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.h
+++ b/content/public/browser/resource_dispatcher_host_delegate.h
@@ -124,6 +124,11 @@ class CONTENT_EXPORT ResourceDispatcherHostDelegate {
// Notification that a request has completed.
virtual void RequestComplete(net::URLRequest* url_request);
+ // Asks the embedder if Lo-Fi mode should be enabled for the given request. Is
nasko 2015/10/01 18:28:57 nit: s/Is/It is/
megjablon 2015/10/01 19:43:25 Done.
+ // only called for main frame requests with an unspecified Lo-Fi value.
+ virtual bool ShouldEnableLoFiMode(net::URLRequest* url_request,
+ content::ResourceContext* resource_context);
+
protected:
ResourceDispatcherHostDelegate();
virtual ~ResourceDispatcherHostDelegate();

Powered by Google App Engine
This is Rietveld 408576698