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

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

Issue 8302018: Make content_shell not crash on startup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "net/url_request/url_request_context_getter.h" 13 #include "net/url_request/url_request_context_getter.h"
14 14
15 class MessageLoop; 15 class MessageLoop;
16 16
17 namespace net { 17 namespace net {
18 class CertVerifier;
19 class DnsRRResolver;
20 class HostResolver; 18 class HostResolver;
21 class HttpAuthHandlerFactory; 19 class URLRequestContextStorage;
22 class HttpTransactionFactory;
23 class ProxyService;
24 class OriginBoundCertService;
25 class URLRequestJobFactory;
26 class URLSecurityManager;
27 } 20 }
28 21
29 namespace content { 22 namespace content {
30 23
31 class ShellURLRequestContextGetter : public net::URLRequestContextGetter { 24 class ShellURLRequestContextGetter : public net::URLRequestContextGetter {
32 public: 25 public:
33 ShellURLRequestContextGetter( 26 ShellURLRequestContextGetter(
34 const FilePath& base_path_, 27 const FilePath& base_path_,
35 MessageLoop* io_loop, 28 MessageLoop* io_loop,
36 MessageLoop* file_loop); 29 MessageLoop* file_loop);
37 virtual ~ShellURLRequestContextGetter(); 30 virtual ~ShellURLRequestContextGetter();
38 31
39 // net::URLRequestContextGetter implementation. 32 // net::URLRequestContextGetter implementation.
40 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; 33 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE;
41 virtual net::CookieStore* DONTUSEME_GetCookieStore() OVERRIDE; 34 virtual net::CookieStore* DONTUSEME_GetCookieStore() OVERRIDE;
42 virtual scoped_refptr<base::MessageLoopProxy> 35 virtual scoped_refptr<base::MessageLoopProxy>
43 GetIOMessageLoopProxy() const OVERRIDE; 36 GetIOMessageLoopProxy() const OVERRIDE;
44 37
45 net::HostResolver* host_resolver() { return host_resolver_.get(); } 38 net::HostResolver* host_resolver();
46 39
47 private: 40 private:
48 FilePath base_path_; 41 FilePath base_path_;
49 MessageLoop* io_loop_; 42 MessageLoop* io_loop_;
50 MessageLoop* file_loop_; 43 MessageLoop* file_loop_;
51 44
52 scoped_ptr<net::URLRequestJobFactory> job_factory_;
53 scoped_refptr<net::URLRequestContext> url_request_context_; 45 scoped_refptr<net::URLRequestContext> url_request_context_;
54 46 scoped_ptr<net::URLRequestContextStorage> storage_;
55 scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
56 scoped_ptr<net::HostResolver> host_resolver_;
57 scoped_ptr<net::CertVerifier> cert_verifier_;
58 scoped_ptr<net::OriginBoundCertService> origin_bound_cert_service_;
59 scoped_ptr<net::DnsRRResolver> dnsrr_resolver_;
60 scoped_ptr<net::ProxyService> proxy_service_;
61 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory_;
62 scoped_ptr<net::URLSecurityManager> url_security_manager_;
63 47
64 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); 48 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
65 }; 49 };
66 50
67 } // namespace content 51 } // namespace content
68 52
69 #endif // CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 53 #endif // CONTENT_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/shell_url_request_context_getter.cc » ('j') | content/shell/shell_url_request_context_getter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698