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

Side by Side Diff: net/spdy/platform/api/spdy_ptr_util.h

Issue 2840563003: Implement SpdyMakeUnique and SpdyWrapUnique. (Closed)
Patch Set: Created 3 years, 7 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 | « net/spdy/core/spdy_test_utils.cc ('k') | net/spdy/platform/impl/spdy_ptr_util_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_API_SPDY_PTR_UTIL_H_
6 #define NET_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_
7
8 #include "net/spdy/platform/impl/spdy_ptr_util_impl.h"
9
10 namespace net {
11
12 template <typename T, typename... Args>
13 std::unique_ptr<T> SpdyMakeUnique(Args&&... args) {
14 return SpdyMakeUniqueImpl<T>(std::forward<Args>(args)...);
15 }
16
17 template <typename T>
18 std::unique_ptr<T> SpdyWrapUnique(T* ptr) {
19 return SpdyWrapUniqueImpl<T>(ptr);
20 }
21
22 } // namespace net
23
24 #endif // NET_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_test_utils.cc ('k') | net/spdy/platform/impl/spdy_ptr_util_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698