OLD | NEW |
---|---|
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 Loading... | |
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. | |
mmenke
2015/09/29 16:35:57
Should mention it's only called for requests with
megjablon
2015/09/29 21:20:07
Done.
| |
128 virtual bool ShouldEnableLoFiMode(net::URLRequest* url_request, | |
129 content::ResourceContext* resource_context); | |
130 | |
127 protected: | 131 protected: |
128 ResourceDispatcherHostDelegate(); | 132 ResourceDispatcherHostDelegate(); |
129 virtual ~ResourceDispatcherHostDelegate(); | 133 virtual ~ResourceDispatcherHostDelegate(); |
130 }; | 134 }; |
131 | 135 |
132 } // namespace content | 136 } // namespace content |
133 | 137 |
134 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 138 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |