| Index: net/base/network_delegate.h
|
| diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
|
| index fb5a4da4e69670a4c0105f4e681eeba581374204..aa8fa9a3c4f860640d3e723f8e85569ae530bb92 100644
|
| --- a/net/base/network_delegate.h
|
| +++ b/net/base/network_delegate.h
|
| @@ -61,6 +61,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 +123,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
|
|
|