Add ability to gather metrics to BubbleManager.
[chromium-blink-merge.git] / remoting / base / url_request_context_getter.h
blob93e6817416d91dabb5f4f4509267af4b70957e54
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 NetLog;
18 class ProxyConfigService;
19 } // namespace net
21 namespace remoting {
23 class URLRequestContextGetter : public net::URLRequestContextGetter {
24 public:
25 URLRequestContextGetter(
26 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
27 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
29 // Overridden from net::URLRequestContextGetter:
30 net::URLRequestContext* GetURLRequestContext() override;
31 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
32 const override;
34 protected:
35 ~URLRequestContextGetter() override;
37 private:
38 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
39 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
40 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
41 scoped_ptr<net::NetLog> net_log_;
42 scoped_ptr<net::URLRequestContext> url_request_context_;
44 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter);
47 } // namespace remoting
49 #endif // REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_