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

Unified Diff: third_party/WebKit/Source/wtf/Forward.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « third_party/WebKit/Source/wtf/FilePrintStream.cpp ('k') | third_party/WebKit/Source/wtf/Functional.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Forward.h
diff --git a/third_party/WebKit/Source/wtf/Forward.h b/third_party/WebKit/Source/wtf/Forward.h
index 521fffe8311dd7c3be4305d4ae064d2cff86e2cc..03f1333b5364970194773db9dda0d1eafef0e7c5 100644
--- a/third_party/WebKit/Source/wtf/Forward.h
+++ b/third_party/WebKit/Source/wtf/Forward.h
@@ -26,6 +26,15 @@
namespace WTF {
+template <typename T> class OwnPtr;
+#if COMPILER(MSVC)
+#ifndef PassOwnPtr
+#define PassOwnPtr OwnPtr
+#endif
+#else
+template <typename T>
+using PassOwnPtr = OwnPtr<T>;
+#endif
template <typename T> class PassRefPtr;
template <typename T> class RefPtr;
template <size_t size> class SizeSpecificPartitionAllocator;
@@ -54,6 +63,8 @@ class Uint32Array;
} // namespace WTF
+using WTF::OwnPtr;
+using WTF::PassOwnPtr;
using WTF::PassRefPtr;
using WTF::RefPtr;
using WTF::Vector;
« no previous file with comments | « third_party/WebKit/Source/wtf/FilePrintStream.cpp ('k') | third_party/WebKit/Source/wtf/Functional.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698