1 // Copyright 2014 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 #include "extensions/shell/browser/shell_url_request_context_getter.h"
7 #include "content/public/browser/resource_request_info.h"
8 #include "extensions/browser/info_map.h"
9 #include "extensions/shell/browser/shell_network_delegate.h"
11 namespace extensions
{
13 ShellURLRequestContextGetter::ShellURLRequestContextGetter(
14 content::BrowserContext
* browser_context
,
15 bool ignore_certificate_errors
,
16 const base::FilePath
& base_path
,
17 base::MessageLoop
* io_loop
,
18 base::MessageLoop
* file_loop
,
19 content::ProtocolHandlerMap
* protocol_handlers
,
20 content::URLRequestInterceptorScopedVector request_interceptors
,
22 InfoMap
* extension_info_map
)
23 : content::ShellURLRequestContextGetter(ignore_certificate_errors
,
28 request_interceptors
.Pass(),
30 browser_context_(browser_context
),
31 extension_info_map_(extension_info_map
) {
34 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() {
38 ShellURLRequestContextGetter::CreateNetworkDelegate() {
39 return new ShellNetworkDelegate(browser_context_
, extension_info_map_
);
42 } // namespace extensions