OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef NET_SPDY_PLATFORM_IMPL_SPDY_PTR_UTIL_IMPL_H_ |
| 6 #define NET_SPDY_PLATFORM_IMPL_SPDY_PTR_UTIL_IMPL_H_ |
| 7 |
| 8 #include "base/memory/ptr_util.h" |
| 9 |
| 10 namespace net { |
| 11 |
| 12 template <typename T, typename... Args> |
| 13 std::unique_ptr<T> SpdyMakeUniqueImpl(Args&&... args) { |
| 14 return base::MakeUnique<T>(std::forward<Args>(args)...); |
| 15 } |
| 16 |
| 17 template <typename T> |
| 18 std::unique_ptr<T> SpdyWrapUniqueImpl(T* ptr) { |
| 19 return base::WrapUnique<T>(ptr); |
| 20 } |
| 21 |
| 22 } // namespace net |
| 23 |
| 24 #endif // NET_SPDY_PLATFORM_IMPL_SPDY_PTR_UTIL_IMPL_H_ |
OLD | NEW |