Chromium Code Reviews| Index: net/base/network_delegate.h |
| diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h |
| index 4be320b9305ccd869a76239eeb25834aa5d8a83d..df3b134d31baafa3c98bc1f2379d8707f682506f 100644 |
| --- a/net/base/network_delegate.h |
| +++ b/net/base/network_delegate.h |
| @@ -35,6 +35,7 @@ namespace net { |
| class CookieOptions; |
| class HttpRequestHeaders; |
| class HttpResponseHeaders; |
| +class ProxyInfo; |
| class SocketStream; |
| class URLRequest; |
| @@ -63,6 +64,9 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe { |
| int NotifyBeforeSendHeaders(URLRequest* request, |
| const CompletionCallback& callback, |
| HttpRequestHeaders* headers); |
| + int NotifyBeforeSendProxyHeaders(URLRequest* request, |
| + const ProxyInfo* proxy_info, |
| + HttpRequestHeaders* headers); |
| void NotifySendHeaders(URLRequest* request, |
| const HttpRequestHeaders& headers); |
| int NotifyHeadersReceived( |
| @@ -126,6 +130,13 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe { |
| const CompletionCallback& callback, |
| HttpRequestHeaders* headers); |
| + // Called after a proxy connection. Allows the delegate to read/write |
| + // |headers] before they get sent out. |headers| is valid only until |
| + // OnCompleted or OnURLRequestDestroyed is called for this request. |
| + virtual int OnBeforeSendProxyHeaders(URLRequest* request, |
|
mef
2014/06/24 17:41:56
Please document the return value.
bengr
2014/06/24 19:01:51
Done.
|
| + const ProxyInfo* proxy_info, |
| + HttpRequestHeaders* headers); |
| + |
| // Called right before the HTTP request(s) are being sent to the network. |
| // |headers| is only valid until OnCompleted or OnURLRequestDestroyed is |
| // called for this request. |