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

Side by Side Diff: extensions/browser/extension_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: Rebase again. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_URL_REQUEST_CONTEXT_GETTER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_URL_REQUEST_CONTEXT_GETTER_H_
7
8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.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
15 namespace base {
16 class MessageLoop;
17 }
18
19 namespace net {
20 class NetworkDelegate;
21 class NetLog;
22 class ProxyConfigService;
23 class URLRequestContextStorage;
24 }
25
26 namespace extensions {
27
28 class InfoMap;
29
30 class ExtensionURLRequestContextGetter : public net::URLRequestContextGetter {
31 public:
32 explicit ExtensionURLRequestContextGetter(
33 void* browser_context,
34 bool ignore_certificate_errors,
35 const base::FilePath& base_path,
36 base::MessageLoop* io_loop,
37 base::MessageLoop* file_loop,
38 content::ProtocolHandlerMap* protocol_handlers,
39 content::URLRequestInterceptorScopedVector request_interceptors,
40 net::NetLog* net_log,
41 InfoMap* extension_info_map);
42
43 // net::URLRequestContextGetter implementation.
44 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE;
45 virtual scoped_refptr<base::SingleThreadTaskRunner>
46 GetNetworkTaskRunner() const OVERRIDE;
47
48 protected:
49 virtual ~ExtensionURLRequestContextGetter();
50 private:
51 void* browser_context_;
52 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_;
58
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:
67 DISALLOW_COPY_AND_ASSIGN(ExtensionURLRequestContextGetter);
68 };
69
70 } // namespace extensions
71
72 #endif // EXTENSIONS_BROWSER_EXTENSION_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_network_delegate.cc ('k') | extensions/browser/extension_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698