Chromium Code Reviews| Index: net/http/http_transaction.h |
| diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h |
| index ed1b20dac2ffb8298c67c5bfc83d4850027b805b..5b9c5d0063b95d020639a27c4b8fd2fac243e3f3 100644 |
| --- a/net/http/http_transaction.h |
| +++ b/net/http/http_transaction.h |
| @@ -21,6 +21,7 @@ struct HttpRequestInfo; |
| class HttpResponseInfo; |
| class IOBuffer; |
| struct LoadTimingInfo; |
| +class ProxyInfo; |
| class QuicServerInfo; |
| class X509Certificate; |
| @@ -33,6 +34,8 @@ class NET_EXPORT_PRIVATE HttpTransaction { |
| // ResumeNetworkStart is called before establishing a connection. |
| typedef base::Callback<void(bool* defer)> BeforeNetworkStartCallback; |
| + typedef base::Callback<void(const ProxyInfo*)> BeforeProxyHeadersSentCallback; |
|
mef
2014/06/25 17:21:33
&
bengr
2014/06/25 19:25:22
Done.
|
| + |
| // Stops any pending IO and destroys the transaction object. |
| virtual ~HttpTransaction() {} |
| @@ -158,6 +161,11 @@ class NET_EXPORT_PRIVATE HttpTransaction { |
| virtual void SetBeforeNetworkStartCallback( |
| const BeforeNetworkStartCallback& callback) = 0; |
| + // Set the callback to receive notification just before a proxy request |
| + // is to be sent. |
| + virtual void SetBeforeProxyHeadersSentCallback( |
| + const BeforeProxyHeadersSentCallback& callback) = 0; |
| + |
| // Resumes the transaction after being deferred. |
| virtual int ResumeNetworkStart() = 0; |
| }; |