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

Side by Side Diff: extensions/shell/browser/shell_url_request_context_getter.cc

Issue 2946343003: Remove more instances of BrowserThread::FILE. (Closed)
Patch Set: this time with feeling Created 3 years, 6 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
« no previous file with comments | « extensions/shell/browser/shell_url_request_context_getter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/shell/browser/shell_url_request_context_getter.h" 5 #include "extensions/shell/browser/shell_url_request_context_getter.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "content/public/browser/resource_request_info.h" 10 #include "content/public/browser/resource_request_info.h"
11 #include "extensions/browser/info_map.h" 11 #include "extensions/browser/info_map.h"
12 #include "extensions/shell/browser/shell_network_delegate.h" 12 #include "extensions/shell/browser/shell_network_delegate.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 ShellURLRequestContextGetter::ShellURLRequestContextGetter( 16 ShellURLRequestContextGetter::ShellURLRequestContextGetter(
17 content::BrowserContext* browser_context, 17 content::BrowserContext* browser_context,
18 bool ignore_certificate_errors, 18 bool ignore_certificate_errors,
19 const base::FilePath& base_path, 19 const base::FilePath& base_path,
20 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 20 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
21 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
22 content::ProtocolHandlerMap* protocol_handlers, 21 content::ProtocolHandlerMap* protocol_handlers,
23 content::URLRequestInterceptorScopedVector request_interceptors, 22 content::URLRequestInterceptorScopedVector request_interceptors,
24 net::NetLog* net_log, 23 net::NetLog* net_log,
25 InfoMap* extension_info_map) 24 InfoMap* extension_info_map)
26 : content::ShellURLRequestContextGetter(ignore_certificate_errors, 25 : content::ShellURLRequestContextGetter(ignore_certificate_errors,
27 base_path, 26 base_path,
28 std::move(io_task_runner), 27 std::move(io_task_runner),
29 std::move(file_task_runner),
30 protocol_handlers, 28 protocol_handlers,
31 std::move(request_interceptors), 29 std::move(request_interceptors),
32 net_log), 30 net_log),
33 browser_context_(browser_context), 31 browser_context_(browser_context),
34 extension_info_map_(extension_info_map) {} 32 extension_info_map_(extension_info_map) {}
35 33
36 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() { 34 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() {
37 } 35 }
38 36
39 std::unique_ptr<net::NetworkDelegate> 37 std::unique_ptr<net::NetworkDelegate>
40 ShellURLRequestContextGetter::CreateNetworkDelegate() { 38 ShellURLRequestContextGetter::CreateNetworkDelegate() {
41 return base::MakeUnique<ShellNetworkDelegate>(browser_context_, 39 return base::MakeUnique<ShellNetworkDelegate>(browser_context_,
42 extension_info_map_); 40 extension_info_map_);
43 } 41 }
44 42
45 } // namespace extensions 43 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_url_request_context_getter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698