diff options
Diffstat (limited to 'chrome/service/net/service_url_request_context.h')
-rw-r--r-- | chrome/service/net/service_url_request_context.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/service/net/service_url_request_context.h b/chrome/service/net/service_url_request_context.h index 7ffda3c..becc21a 100644 --- a/chrome/service/net/service_url_request_context.h +++ b/chrome/service/net/service_url_request_context.h @@ -31,7 +31,8 @@ class MessageLoopProxy; // class ServiceURLRequestContext : public net::URLRequestContext { public: - explicit ServiceURLRequestContext(const std::string& user_agent); + explicit ServiceURLRequestContext(const std::string& user_agent, + net::ProxyService* net_proxy_service); // Overridden from net::URLRequestContext: virtual const std::string& GetUserAgent(const GURL& url) const; @@ -45,8 +46,6 @@ class ServiceURLRequestContext : public net::URLRequestContext { class ServiceURLRequestContextGetter : public URLRequestContextGetter { public: - ServiceURLRequestContextGetter(); - virtual net::URLRequestContext* GetURLRequestContext(); virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() const; @@ -56,12 +55,18 @@ class ServiceURLRequestContextGetter : public URLRequestContextGetter { std::string user_agent() const { return user_agent_; } + private: + friend class ServiceProcess; + ServiceURLRequestContextGetter(); virtual ~ServiceURLRequestContextGetter(); + void CreateProxyService(); + std::string user_agent_; scoped_refptr<net::URLRequestContext> url_request_context_; scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; + scoped_refptr<net::ProxyService> proxy_service_; }; #endif // CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_ |