OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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. | |
4 | |
5 #ifndef MOJO_URL_REQUEST_CONTEXT_GETTER_H_ | |
6 #define MOJO_URL_REQUEST_CONTEXT_GETTER_H_ | |
7 | |
8 #include "base/files/file_path.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/message_loop/message_loop_proxy.h" | |
11 #include "net/url_request/url_request_context_getter.h" | |
12 #include "net/url_request/url_request_context_storage.h" | |
13 | |
14 namespace mojo { | |
15 namespace loader { | |
16 | |
17 class URLRequestContextGetter : public net::URLRequestContextGetter { | |
18 public: | |
19 URLRequestContextGetter( | |
20 base::FilePath base_path, | |
21 base::SingleThreadTaskRunner* network_task_runner, | |
22 base::MessageLoopProxy* cache_task_runner); | |
23 ~URLRequestContextGetter(); | |
darin (slow to review)
2013/10/18 07:11:29
a presubmit check is likely to complain about this
abarth-chromium
2013/10/18 07:27:17
Ok. It's virtual from the base class, but I'll ma
| |
24 | |
25 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; | |
26 virtual scoped_refptr<base::SingleThreadTaskRunner> | |
27 GetNetworkTaskRunner() const OVERRIDE; | |
28 | |
29 private: | |
30 base::FilePath base_path_; | |
31 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | |
32 scoped_refptr<base::MessageLoopProxy> cache_task_runner_; | |
33 scoped_ptr<net::NetLog> net_log_; | |
34 scoped_ptr<net::URLRequestContextStorage> storage_; | |
35 scoped_ptr<net::URLRequestContext> url_request_context_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter); | |
38 }; | |
39 | |
40 } // namespace loader | |
41 } // namespace mojo | |
42 | |
43 #endif // MOJO_URL_REQUEST_CONTEXT_GETTER_H_ | |
OLD | NEW |