Elim cr-checkbox
[chromium-blink-merge.git] / extensions / shell / browser / shell_url_request_context_getter.cc
blob4216a3ee4e7620ddc026732f0f0ee63cb6a67c25
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 "base/memory/scoped_ptr.h"
8 #include "content/public/browser/resource_request_info.h"
9 #include "extensions/browser/info_map.h"
10 #include "extensions/shell/browser/shell_network_delegate.h"
12 namespace extensions {
14 ShellURLRequestContextGetter::ShellURLRequestContextGetter(
15 content::BrowserContext* browser_context,
16 bool ignore_certificate_errors,
17 const base::FilePath& base_path,
18 base::MessageLoop* io_loop,
19 base::MessageLoop* file_loop,
20 content::ProtocolHandlerMap* protocol_handlers,
21 content::URLRequestInterceptorScopedVector request_interceptors,
22 net::NetLog* net_log,
23 InfoMap* extension_info_map)
24 : content::ShellURLRequestContextGetter(ignore_certificate_errors,
25 base_path,
26 io_loop,
27 file_loop,
28 protocol_handlers,
29 request_interceptors.Pass(),
30 net_log),
31 browser_context_(browser_context),
32 extension_info_map_(extension_info_map) {
35 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() {
38 scoped_ptr<net::NetworkDelegate>
39 ShellURLRequestContextGetter::CreateNetworkDelegate() {
40 return make_scoped_ptr(
41 new ShellNetworkDelegate(browser_context_, extension_info_map_));
44 } // namespace extensions