Index: third_party/WebKit/Source/wtf/WeakPtr.h |
diff --git a/third_party/WebKit/Source/wtf/WeakPtr.h b/third_party/WebKit/Source/wtf/WeakPtr.h |
index c377957c80c9397200eaf7c40a91e8131e296578..a2149b74c24cc85f6ce28dd13776a031ccde4de2 100644 |
--- a/third_party/WebKit/Source/wtf/WeakPtr.h |
+++ b/third_party/WebKit/Source/wtf/WeakPtr.h |
@@ -26,6 +26,7 @@ |
#ifndef WTF_WeakPtr_h |
#define WTF_WeakPtr_h |
+#include "wtf/CrossThreadCopier.h" |
#include "wtf/Noncopyable.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefPtr.h" |
@@ -114,6 +115,11 @@ private: |
RefPtr<WeakReference<T>> m_ref; |
}; |
+template<typename T> |
+struct CrossThreadCopier<WeakPtr<T>> : public CrossThreadCopierPassThrough<WeakPtr<T>> { |
+ STATIC_ONLY(CrossThreadCopier); |
+}; |
+ |
template<typename T, typename U> inline bool operator==(const WeakPtr<T>& a, const WeakPtr<U>& b) |
{ |
return a.get() == b.get(); |