OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_URL_REQUEST_CONTEXT_H_ | 5 #ifndef REMOTING_HOST_URL_REQUEST_CONTEXT_H_ |
6 #define REMOTING_HOST_URL_REQUEST_CONTEXT_H_ | 6 #define REMOTING_HOST_URL_REQUEST_CONTEXT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 private: | 32 private: |
33 virtual ~URLRequestContext(); | 33 virtual ~URLRequestContext(); |
34 | 34 |
35 net::URLRequestContextStorage storage_; | 35 net::URLRequestContextStorage storage_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 37 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
38 }; | 38 }; |
39 | 39 |
40 class URLRequestContextGetter : public net::URLRequestContextGetter { | 40 class URLRequestContextGetter : public net::URLRequestContextGetter { |
41 public: | 41 public: |
42 URLRequestContextGetter(base::MessageLoopProxy* ui_message_loop, | 42 URLRequestContextGetter( |
43 MessageLoop* io_message_loop, | 43 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
44 MessageLoopForIO* file_message_loop); | 44 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
| 45 MessageLoopForIO* file_message_loop); |
45 | 46 |
46 // Overridden from net::URLRequestContextGetter: | 47 // Overridden from net::URLRequestContextGetter: |
47 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; | 48 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; |
48 virtual scoped_refptr<base::SingleThreadTaskRunner> | 49 virtual scoped_refptr<base::SingleThreadTaskRunner> |
49 GetNetworkTaskRunner() const OVERRIDE; | 50 GetNetworkTaskRunner() const OVERRIDE; |
50 | 51 |
51 protected: | 52 protected: |
52 virtual ~URLRequestContextGetter(); | 53 virtual ~URLRequestContextGetter(); |
53 | 54 |
54 private: | 55 private: |
55 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 56 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
56 scoped_ptr<net::ProxyConfigService> proxy_config_service_; | 57 scoped_ptr<net::ProxyConfigService> proxy_config_service_; |
57 scoped_ptr<net::URLRequestContext> url_request_context_; | 58 scoped_ptr<net::URLRequestContext> url_request_context_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter); | 60 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace remoting | 63 } // namespace remoting |
63 | 64 |
64 #endif // REMOTING_HOST_URL_REQUEST_CONTEXT_H_ | 65 #endif // REMOTING_HOST_URL_REQUEST_CONTEXT_H_ |
OLD | NEW |