Chromium Code Reviews| Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h |
| diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h |
| index 25b26f125180e5dbcf41b400f5d4162b9148b0fd..0b7de44a3be33ac960583b0dc0921d373ada79e8 100644 |
| --- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h |
| +++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h |
| @@ -18,20 +18,24 @@ class DelayedResourceQueue; |
| class DownloadRequestLimiter; |
| namespace extensions { |
| class UserScriptListener; |
| } |
| namespace safe_browsing { |
| class SafeBrowsingService; |
| } |
| +namespace net { |
| +class HostPortPair; |
| +} |
| + |
| // Implements ResourceDispatcherHostDelegate. Currently used by the Prerender |
| // system to abort requests and add to the load flags when a request begins. |
| class ChromeResourceDispatcherHostDelegate |
| : public content::ResourceDispatcherHostDelegate { |
| public: |
| ChromeResourceDispatcherHostDelegate(); |
| ~ChromeResourceDispatcherHostDelegate() override; |
| // ResourceDispatcherHostDelegate implementation. |
| bool ShouldBeginRequest(const std::string& method, |
| @@ -79,20 +83,24 @@ class ChromeResourceDispatcherHostDelegate |
| IPC::Sender* sender) override; |
| void OnRequestRedirected(const GURL& redirect_url, |
| net::URLRequest* request, |
| content::ResourceContext* resource_context, |
| content::ResourceResponse* response) override; |
| void RequestComplete(net::URLRequest* url_request) override; |
| bool ShouldEnableLoFiMode( |
| const net::URLRequest& url_request, |
| content::ResourceContext* resource_context) override; |
| + bool WasFetchedViaDataReductionProxy( |
| + const net::HostPortPair& proxy_server, |
| + content::ResourceContext* resource_context) override; |
|
bengr
2016/02/26 22:53:57
You should probably forward declare this.
RyanSturm
2016/03/01 19:36:04
Done.
|
| + |
| // Called on the UI thread. Allows switching out the |
| // ExternalProtocolHandler::Delegate for testing code. |
| static void SetExternalProtocolHandlerDelegateForTesting( |
| ExternalProtocolHandler::Delegate* delegate); |
| private: |
| #if defined(ENABLE_EXTENSIONS) |
| struct StreamTargetInfo { |
| std::string extension_id; |
| std::string view_id; |