// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_ #define REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_ #include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "net/url_request/url_request_context_getter.h" namespace base { class SingleThreadTaskRunner; } // namespace base namespace net { class NetLog; class ProxyConfigService; } // namespace net namespace remoting { class URLRequestContextGetter : public net::URLRequestContextGetter { public: URLRequestContextGetter( scoped_refptr network_task_runner, scoped_refptr file_task_runner); // Overridden from net::URLRequestContextGetter: net::URLRequestContext* GetURLRequestContext() override; scoped_refptr GetNetworkTaskRunner() const override; protected: ~URLRequestContextGetter() override; private: scoped_refptr network_task_runner_; scoped_refptr file_task_runner_; scoped_ptr proxy_config_service_; scoped_ptr net_log_; scoped_ptr url_request_context_; DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter); }; } // namespace remoting #endif // REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_