| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/extension_resource_protocols.h" | 5 #include "chrome/browser/extensions/extension_resource_protocols.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 net::URLRequestJob* | 91 net::URLRequestJob* |
| 92 ExtensionResourceProtocolHandler::MaybeCreateJob( | 92 ExtensionResourceProtocolHandler::MaybeCreateJob( |
| 93 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { | 93 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { |
| 94 return new ExtensionResourcesJob(request, network_delegate); | 94 return new ExtensionResourcesJob(request, network_delegate); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace | 97 } // namespace |
| 98 | 98 |
| 99 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler> | 99 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 100 CreateExtensionResourceProtocolHandler() { | 100 CreateExtensionResourceProtocolHandler() { |
| 101 return base::WrapUnique(new ExtensionResourceProtocolHandler()); | 101 return base::MakeUnique<ExtensionResourceProtocolHandler>(); |
| 102 } | 102 } |
| OLD | NEW |