| Index: net/base/network_delegate.h
|
| diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
|
| index 07371371054719555164ca380a1b1cd0c5fc53e8..509a87bce4f68f41d9e5fa63b4d0a0b5ecddd348 100644
|
| --- a/net/base/network_delegate.h
|
| +++ b/net/base/network_delegate.h
|
| @@ -31,22 +31,20 @@ namespace net {
|
| // submodule. Also, since the lower levels in net/ may callback into higher
|
| // levels, we may encounter dangerous casting issues.
|
| //
|
| // NOTE: It is not okay to add any compile-time dependencies on symbols outside
|
| // of net/base here, because we have a net_base library. Forward declarations
|
| // are ok.
|
| class CookieOptions;
|
| class HttpRequestHeaders;
|
| class HttpResponseHeaders;
|
| class ProxyInfo;
|
| -class ProxyServer;
|
| -class ProxyService;
|
| class URLRequest;
|
|
|
| class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
|
| public:
|
| // AuthRequiredResponse indicates how a NetworkDelegate handles an
|
| // OnAuthRequired call. It's placed in this file to prevent url_request.h
|
| // from having to include network_delegate.h.
|
| enum AuthRequiredResponse {
|
| AUTH_REQUIRED_RESPONSE_NO_ACTION,
|
| AUTH_REQUIRED_RESPONSE_SET_AUTH,
|
| @@ -57,26 +55,20 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
|
|
|
| virtual ~NetworkDelegate() {}
|
|
|
| // Notification interface called by the network stack. Note that these
|
| // functions mostly forward to the private virtuals. They also add some sanity
|
| // checking on parameters. See the corresponding virtuals for explanations of
|
| // the methods and their arguments.
|
| int NotifyBeforeURLRequest(URLRequest* request,
|
| const CompletionCallback& callback,
|
| GURL* new_url);
|
| - void NotifyResolveProxy(const GURL& url,
|
| - int load_flags,
|
| - const ProxyService& proxy_service,
|
| - ProxyInfo* result);
|
| - void NotifyProxyFallback(const ProxyServer& bad_proxy,
|
| - int net_error);
|
| int NotifyBeforeSendHeaders(URLRequest* request,
|
| const CompletionCallback& callback,
|
| HttpRequestHeaders* headers);
|
| void NotifyBeforeSendProxyHeaders(URLRequest* request,
|
| const ProxyInfo& proxy_info,
|
| HttpRequestHeaders* headers);
|
| void NotifySendHeaders(URLRequest* request,
|
| const HttpRequestHeaders& headers);
|
| int NotifyHeadersReceived(
|
| URLRequest* request,
|
| @@ -133,34 +125,20 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
|
| // called for this request. Returns a net status code, generally either OK to
|
| // continue with the request or ERR_IO_PENDING if the result is not ready yet.
|
| // A status code other than OK and ERR_IO_PENDING will cancel the request and
|
| // report the status code as the reason.
|
| //
|
| // The default implementation returns OK (continue with request).
|
| virtual int OnBeforeURLRequest(URLRequest* request,
|
| const CompletionCallback& callback,
|
| GURL* new_url) = 0;
|
|
|
| - // 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,
|
| - const ProxyService& proxy_service,
|
| - ProxyInfo* result) = 0;
|
| -
|
| - // Called when use of |bad_proxy| fails due to |net_error|. |net_error| is
|
| - // the network error encountered, if any, and OK if the fallback was
|
| - // for a reason other than a network error (e.g. the proxy service was
|
| - // explicitly directed to skip a proxy).
|
| - virtual void OnProxyFallback(const ProxyServer& bad_proxy, int net_error) = 0;
|
| -
|
| // 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
|
| // request.
|
| // See OnBeforeURLRequest for return value description. Returns OK by default.
|
| virtual int OnBeforeSendHeaders(URLRequest* request,
|
| const CompletionCallback& callback,
|
| HttpRequestHeaders* headers) = 0;
|
|
|
| // Called after a proxy connection. Allows the delegate to read/write
|
|
|