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"
20 class NetworkDelegate
;
24 namespace extensions
{
28 class ShellURLRequestContextGetter
:
29 public content::ShellURLRequestContextGetter
{
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
,
40 InfoMap
* extension_info_map
);
42 // content::ShellURLRequestContextGetter implementation.
43 scoped_ptr
<net::NetworkDelegate
> CreateNetworkDelegate() override
;
46 ~ShellURLRequestContextGetter() override
;
49 content::BrowserContext
* browser_context_
;
50 InfoMap
* extension_info_map_
;
53 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter
);
56 } // namespace extensions
58 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_