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

Side by Side Diff: extensions/shell/browser/shell_url_request_context_getter.h

Issue 631203003: Fix bug: AppShell: CHECK failure in PeerConnection init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_BROWSER_EXTENSION_URL_REQUEST_CONTEXT_GETTER_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_URL_REQUEST_CONTEXT_GETTER_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "content/shell/browser/shell_url_request_context_getter.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/content_browser_client.h"
12 #include "net/url_request/url_request_context_getter.h"
13 #include "net/url_request/url_request_job_factory.h"
14 10
15 namespace base { 11 namespace base {
16 class MessageLoop; 12 class MessageLoop;
17 } 13 }
18 14
19 namespace net { 15 namespace net {
20 class NetworkDelegate; 16 class NetworkDelegate;
21 class NetLog; 17 class NetLog;
22 class ProxyConfigService;
23 class URLRequestContextStorage;
24 } 18 }
25 19
26 namespace extensions { 20 namespace extensions {
27 21
28 class InfoMap; 22 class InfoMap;
29 23
30 class ExtensionURLRequestContextGetter : public net::URLRequestContextGetter { 24 class ShellURLRequestContextGetter :
25 public content::ShellURLRequestContextGetter {
31 public: 26 public:
32 explicit ExtensionURLRequestContextGetter( 27 explicit ShellURLRequestContextGetter(
James Cook 2014/10/07 16:24:54 no explicit
Xi Han 2014/10/07 19:29:54 Done.
33 void* browser_context, 28 void* browser_context,
James Cook 2014/10/07 16:24:54 Does this have to be void* or can it be content::B
Xi Han 2014/10/07 19:29:54 Done.
34 bool ignore_certificate_errors, 29 bool ignore_certificate_errors,
35 const base::FilePath& base_path, 30 const base::FilePath& base_path,
36 base::MessageLoop* io_loop, 31 base::MessageLoop* io_loop,
37 base::MessageLoop* file_loop, 32 base::MessageLoop* file_loop,
38 content::ProtocolHandlerMap* protocol_handlers, 33 content::ProtocolHandlerMap* protocol_handlers,
39 content::URLRequestInterceptorScopedVector request_interceptors, 34 content::URLRequestInterceptorScopedVector request_interceptors,
40 net::NetLog* net_log, 35 net::NetLog* net_log,
41 InfoMap* extension_info_map); 36 InfoMap* extension_info_map);
42 37
43 // net::URLRequestContextGetter implementation. 38 // content::ShellURLRequestContextGetter implementation.
44 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; 39 virtual net::NetworkDelegate* CreateNetworkDelegate() OVERRIDE;
James Cook 2014/10/07 16:24:54 I think we prefer lower-case override now.
Xi Han 2014/10/07 19:29:54 Done.
45 virtual scoped_refptr<base::SingleThreadTaskRunner>
46 GetNetworkTaskRunner() const OVERRIDE;
47 40
48 protected: 41 protected:
49 virtual ~ExtensionURLRequestContextGetter(); 42 virtual ~ShellURLRequestContextGetter();
43
50 private: 44 private:
51 void* browser_context_; 45 void* browser_context_;
James Cook 2014/10/07 16:24:54 BrowserContext* please
Xi Han 2014/10/07 19:29:54 Done.
52 bool ignore_certificate_errors_; 46 bool ignore_certificate_errors_;
53 base::FilePath base_path_;
54 base::MessageLoop* io_loop_;
55 base::MessageLoop* file_loop_;
56 net::NetLog* net_log_;
57 InfoMap* extension_info_map_; 47 InfoMap* extension_info_map_;
58 48
59 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
60 scoped_ptr<net::NetworkDelegate> network_delegate_;
61 scoped_ptr<net::URLRequestContextStorage> storage_;
62 scoped_ptr<net::URLRequestContext> url_request_context_;
63 content::ProtocolHandlerMap protocol_handlers_;
64 content::URLRequestInterceptorScopedVector request_interceptors_;
65
66 private: 49 private:
67 DISALLOW_COPY_AND_ASSIGN(ExtensionURLRequestContextGetter); 50 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
68 }; 51 };
69 52
70 } // namespace extensions 53 } // namespace extensions
71 54
72 #endif // EXTENSIONS_BROWSER_EXTENSION_URL_REQUEST_CONTEXT_GETTER_H_ 55 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698