| OLD | NEW |
| 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" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 std::move(request_interceptors), | 31 std::move(request_interceptors), |
| 32 net_log), | 32 net_log), |
| 33 browser_context_(browser_context), | 33 browser_context_(browser_context), |
| 34 extension_info_map_(extension_info_map) {} | 34 extension_info_map_(extension_info_map) {} |
| 35 | 35 |
| 36 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() { | 36 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() { |
| 37 } | 37 } |
| 38 | 38 |
| 39 std::unique_ptr<net::NetworkDelegate> | 39 std::unique_ptr<net::NetworkDelegate> |
| 40 ShellURLRequestContextGetter::CreateNetworkDelegate() { | 40 ShellURLRequestContextGetter::CreateNetworkDelegate() { |
| 41 return base::WrapUnique( | 41 return base::MakeUnique<ShellNetworkDelegate>(browser_context_, |
| 42 new ShellNetworkDelegate(browser_context_, extension_info_map_)); | 42 extension_info_map_); |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace extensions | 45 } // namespace extensions |
| OLD | NEW |