Move data_reduction_proxy_enabled pref to profile_impl_io_data.
[chromium-blink-merge.git] / remoting / base / url_request_context_getter.h
blobd35b021e30f9bf08f28fb81de4c1d8d7b5794ea1
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_
6 #define REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "net/url_request/url_request_context_getter.h"
12 namespace base {
13 class SingleThreadTaskRunner;
14 } // namespace base
16 namespace net {
17 class ProxyConfigService;
18 } // namespace net
20 namespace remoting {
22 class URLRequestContextGetter : public net::URLRequestContextGetter {
23 public:
24 URLRequestContextGetter(
25 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
26 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
28 // Overridden from net::URLRequestContextGetter:
29 virtual net::URLRequestContext* GetURLRequestContext() override;
30 virtual scoped_refptr<base::SingleThreadTaskRunner>
31 GetNetworkTaskRunner() const override;
33 protected:
34 virtual ~URLRequestContextGetter();
36 private:
37 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
38 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
39 scoped_ptr<net::URLRequestContext> url_request_context_;
41 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter);
44 } // namespace remoting
46 #endif // REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_