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

Unified Diff: Source/platform/heap/Handle.h

Issue 670113002: Oilpan: A thread that is not attached to Oilpan shouldn't create a CrossThreadPersistent Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « Source/platform/audio/HRTFDatabaseLoader.cpp ('k') | Source/wtf/UnretainedPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Handle.h
diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
index a95426684b0ffd7ad8cce17444a2859c59c36b93..ef091d456fe7e7c4389a5c0086e81515afd609c4 100644
--- a/Source/platform/heap/Handle.h
+++ b/Source/platform/heap/Handle.h
@@ -40,6 +40,7 @@
#include "wtf/RawPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/TypeTraits.h"
+#include "wtf/UnretainedPtr.h"
namespace blink {
@@ -1160,6 +1161,10 @@ template<typename T>
struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, blink::IsGarbageCollectedType<T>::value> {
};
+template<typename T>
+struct ParamStorageTraits<UnretainedPtr<T> > : public PointerParamStorageTraits<T*, false> {
+};
+
} // namespace WTF
#endif
« no previous file with comments | « Source/platform/audio/HRTFDatabaseLoader.cpp ('k') | Source/wtf/UnretainedPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698