| Index: net/base/network_delegate.h
|
| diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
|
| index 4d56e3f6cfcd4750a8a703c2a655e2520b6d222c..ed6a7faa0a0198cf35ca32d7f7bf1799097ef1cf 100644
|
| --- a/net/base/network_delegate.h
|
| +++ b/net/base/network_delegate.h
|
| @@ -33,6 +33,7 @@ class CookieList;
|
| class CookieOptions;
|
| class HttpRequestHeaders;
|
| class HttpResponseHeaders;
|
| +class SocketStream;
|
| class URLRequest;
|
|
|
| class NetworkDelegate : public base::NonThreadSafe {
|
| @@ -87,6 +88,9 @@ class NetworkDelegate : public base::NonThreadSafe {
|
| const FilePath& path) const;
|
| bool CanThrottleRequest(const URLRequest& request) const;
|
|
|
| + int NotifyBeforeSocketStreamConnect(SocketStream* socket,
|
| + const CompletionCallback& callback);
|
| +
|
| private:
|
| // This is the interface for subclasses of NetworkDelegate to implement. These
|
| // member functions will be called by the respective public notification
|
| @@ -207,6 +211,10 @@ class NetworkDelegate : public base::NonThreadSafe {
|
| // URLRequestThrottlerManager believes the server servicing the
|
| // request is overloaded or down.
|
| virtual bool OnCanThrottleRequest(const URLRequest& request) const = 0;
|
| +
|
| + // Called before a SocketStream tries to connect.
|
| + virtual int OnBeforeSocketStreamConnect(
|
| + SocketStream* socket, const CompletionCallback& callback) = 0;
|
| };
|
|
|
| } // namespace net
|
|
|