Chromium Code Reviews| Index: net/base/network_delegate.h |
| diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h |
| index fb5a4da4e69670a4c0105f4e681eeba581374204..f45ce0714564b74832e50916555595757930717f 100644 |
| --- a/net/base/network_delegate.h |
| +++ b/net/base/network_delegate.h |
| @@ -38,6 +38,7 @@ class HttpResponseHeaders; |
| class ProxyInfo; |
| class SocketStream; |
| class URLRequest; |
| +class ProxyInfo; |
|
mmenke
2014/07/01 19:45:12
nit: Alphabetize.
rcs
2014/07/02 00:56:20
Done.
|
| class NET_EXPORT NetworkDelegate : public base::NonThreadSafe { |
| public: |
| @@ -61,6 +62,8 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe { |
| int NotifyBeforeURLRequest(URLRequest* request, |
| const CompletionCallback& callback, |
| GURL* new_url); |
| + void NotifyResolveProxy(const GURL& url, int load_flags, |
| + ProxyInfo* result); |
| int NotifyBeforeSendHeaders(URLRequest* request, |
| const CompletionCallback& callback, |
| HttpRequestHeaders* headers); |
| @@ -121,6 +124,13 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe { |
| const CompletionCallback& callback, |
| GURL* new_url); |
| + // Called as the proxy is being resolved for |url|. Allows the delegate to |
| + // override the proxy resolution decision made by ProxyService. The delegate |
| + // may override the decision by modifying the ProxyInfo |result|. |
| + virtual void OnResolveProxy(const GURL& url, |
| + int load_flags, |
| + ProxyInfo* result); |
| + |
| // Called right before the HTTP headers are sent. Allows the delegate to |
| // read/write |headers| before they get sent out. |callback| and |headers| are |
| // valid only until OnCompleted or OnURLRequestDestroyed is called for this |