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

Side by Side 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: bengr comments and rebase Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Informs the delegate that a request has been redirected. 118 // Informs the delegate that a request has been redirected.
119 virtual void OnRequestRedirected(const GURL& redirect_url, 119 virtual void OnRequestRedirected(const GURL& redirect_url,
120 net::URLRequest* request, 120 net::URLRequest* request,
121 ResourceContext* resource_context, 121 ResourceContext* resource_context,
122 ResourceResponse* response); 122 ResourceResponse* response);
123 123
124 // Notification that a request has completed. 124 // Notification that a request has completed.
125 virtual void RequestComplete(net::URLRequest* url_request); 125 virtual void RequestComplete(net::URLRequest* url_request);
126 126
127 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It
128 // is only called for requests with an unspecified Lo-Fi value.
129 virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request,
130 content::ResourceContext* resource_context);
131
127 protected: 132 protected:
128 ResourceDispatcherHostDelegate(); 133 ResourceDispatcherHostDelegate();
129 virtual ~ResourceDispatcherHostDelegate(); 134 virtual ~ResourceDispatcherHostDelegate();
130 }; 135 };
131 136
132 } // namespace content 137 } // namespace content
133 138
134 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 139 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/public/browser/resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698