Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: content/shell/shell_url_request_context_getter.h

Issue 11053007: Make content shell support some testing flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove switch from chrome_switches.h and add CONTENT_EXPORT Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "net/url_request/url_request_context_getter.h" 12 #include "net/url_request/url_request_context_getter.h"
13 13
14 class MessageLoop; 14 class MessageLoop;
15 15
16 namespace net { 16 namespace net {
17 class HostResolver; 17 class HostResolver;
18 class MappedHostResolver;
18 class NetworkDelegate; 19 class NetworkDelegate;
19 class ProxyConfigService; 20 class ProxyConfigService;
20 class URLRequestContextStorage; 21 class URLRequestContextStorage;
21 } 22 }
22 23
23 namespace content { 24 namespace content {
24 25
25 class ShellURLRequestContextGetter : public net::URLRequestContextGetter { 26 class ShellURLRequestContextGetter : public net::URLRequestContextGetter {
26 public: 27 public:
27 ShellURLRequestContextGetter( 28 ShellURLRequestContextGetter(
(...skipping 15 matching lines...) Expand all
43 private: 44 private:
44 bool ignore_certificate_errors_; 45 bool ignore_certificate_errors_;
45 FilePath base_path_; 46 FilePath base_path_;
46 MessageLoop* io_loop_; 47 MessageLoop* io_loop_;
47 MessageLoop* file_loop_; 48 MessageLoop* file_loop_;
48 49
49 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 50 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
50 scoped_ptr<net::NetworkDelegate> network_delegate_; 51 scoped_ptr<net::NetworkDelegate> network_delegate_;
51 scoped_ptr<net::URLRequestContextStorage> storage_; 52 scoped_ptr<net::URLRequestContextStorage> storage_;
52 scoped_ptr<net::URLRequestContext> url_request_context_; 53 scoped_ptr<net::URLRequestContext> url_request_context_;
54 scoped_ptr<net::MappedHostResolver> mapped_host_resolver_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); 56 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
55 }; 57 };
56 58
57 } // namespace content 59 } // namespace content
58 60
59 #endif // CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 61 #endif // CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698