| Index: net/proxy/proxy_service.h
|
| ===================================================================
|
| --- net/proxy/proxy_service.h (revision 6881)
|
| +++ net/proxy/proxy_service.h (working copy)
|
| @@ -83,7 +83,7 @@
|
| // This class can be used to resolve the proxy server to use when loading a
|
| // HTTP(S) URL. It uses the given ProxyResolver to handle the actual proxy
|
| // resolution. See ProxyResolverWinHttp for example.
|
| -class ProxyService {
|
| +class ProxyService : public base::RefCounted<ProxyService> {
|
| public:
|
| // The instance takes ownership of |resolver|.
|
| explicit ProxyService(ProxyResolver* resolver);
|
| @@ -138,6 +138,10 @@
|
| // use IE's settings).
|
| static ProxyService* Create(const ProxyInfo* pi);
|
|
|
| + // Create a ProxyService which fails every request, causing fallback to a
|
| + // direct connection. Convenience function used by unit tests.
|
| + static ProxyService* CreateNull();
|
| +
|
| // TODO(eroman): remove once WinHTTP is gone.
|
| // Get the ProxyInfo used to create this proxy service (only used by WinHTTP).
|
| const ProxyInfo* proxy_info() const {
|
|
|