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

Unified Diff: net/spdy/platform/api/spdy_ptr_util.h

Issue 2840563003: Implement SpdyMakeUnique and SpdyWrapUnique. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/platform/api/spdy_ptr_util.h
diff --git a/net/spdy/platform/api/spdy_ptr_util.h b/net/spdy/platform/api/spdy_ptr_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..32e5cb5811db0be9bc4c6e17c8bc542fe8b855fe
--- /dev/null
+++ b/net/spdy/platform/api/spdy_ptr_util.h
@@ -0,0 +1,24 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_
+#define NET_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_
+
+#include "net/spdy/platform/impl/spdy_ptr_util_impl.h"
+
+namespace net {
+
+template <typename T, typename... Args>
+std::unique_ptr<T> SpdyMakeUnique(Args&&... args) {
+ return SpdyMakeUniqueImpl<T>(std::forward<Args>(args)...);
+}
+
+template <typename T>
+std::unique_ptr<T> SpdyWrapUnique(T* ptr) {
+ return SpdyWrapUniqueImpl<T>(ptr);
+}
+
+} // namespace net
+
+#endif // NET_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_
« 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