Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / extensions / shell / browser / shell_url_request_context_getter.h
blob0742530e8e94fd9e031ee31dc729f4408e4c7333
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.
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
8 #include "base/files/file_path.h"
9 #include "content/shell/browser/shell_url_request_context_getter.h"
11 namespace base {
12 class MessageLoop;
15 namespace content {
16 class BrowserContext;
19 namespace net {
20 class NetworkDelegate;
21 class NetLog;
24 namespace extensions {
26 class InfoMap;
28 class ShellURLRequestContextGetter :
29 public content::ShellURLRequestContextGetter {
30 public:
31 ShellURLRequestContextGetter(
32 content::BrowserContext* browser_context,
33 bool ignore_certificate_errors,
34 const base::FilePath& base_path,
35 base::MessageLoop* io_loop,
36 base::MessageLoop* file_loop,
37 content::ProtocolHandlerMap* protocol_handlers,
38 content::URLRequestInterceptorScopedVector request_interceptors,
39 net::NetLog* net_log,
40 InfoMap* extension_info_map);
42 // content::ShellURLRequestContextGetter implementation.
43 scoped_ptr<net::NetworkDelegate> CreateNetworkDelegate() override;
45 protected:
46 ~ShellURLRequestContextGetter() override;
48 private:
49 content::BrowserContext* browser_context_;
50 InfoMap* extension_info_map_;
52 private:
53 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
56 } // namespace extensions
58 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_