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 CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class ShellURLRequestContextGetter : public net::URLRequestContextGetter { | 25 class ShellURLRequestContextGetter : public net::URLRequestContextGetter { |
26 public: | 26 public: |
27 ShellURLRequestContextGetter( | 27 ShellURLRequestContextGetter( |
28 const FilePath& base_path, | 28 const FilePath& base_path, |
29 MessageLoop* io_loop, | 29 MessageLoop* io_loop, |
30 MessageLoop* file_loop); | 30 MessageLoop* file_loop); |
31 virtual ~ShellURLRequestContextGetter(); | 31 virtual ~ShellURLRequestContextGetter(); |
32 | 32 |
33 // net::URLRequestContextGetter implementation. | 33 // net::URLRequestContextGetter implementation. |
34 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; | 34 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; |
35 virtual net::CookieStore* DONTUSEME_GetCookieStore() OVERRIDE; | |
36 virtual scoped_refptr<base::MessageLoopProxy> | 35 virtual scoped_refptr<base::MessageLoopProxy> |
37 GetIOMessageLoopProxy() const OVERRIDE; | 36 GetIOMessageLoopProxy() const OVERRIDE; |
38 | 37 |
39 net::HostResolver* host_resolver(); | 38 net::HostResolver* host_resolver(); |
40 | 39 |
41 private: | 40 private: |
42 FilePath base_path_; | 41 FilePath base_path_; |
43 MessageLoop* io_loop_; | 42 MessageLoop* io_loop_; |
44 MessageLoop* file_loop_; | 43 MessageLoop* file_loop_; |
45 | 44 |
46 scoped_ptr<net::ProxyConfigService> proxy_config_service_; | 45 scoped_ptr<net::ProxyConfigService> proxy_config_service_; |
47 | 46 |
48 scoped_refptr<net::URLRequestContext> url_request_context_; | 47 scoped_refptr<net::URLRequestContext> url_request_context_; |
49 scoped_ptr<net::URLRequestContextStorage> storage_; | 48 scoped_ptr<net::URLRequestContextStorage> storage_; |
50 | 49 |
51 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); | 50 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); |
52 }; | 51 }; |
53 | 52 |
54 } // namespace content | 53 } // namespace content |
55 | 54 |
56 #endif // CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 55 #endif // CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |