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

Unified Diff: third_party/WebKit/Source/platform/CrossThreadCopier.h

Issue 1920193002: Remove CrossThreadCopier for WeakMember and WeakMember* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Kuroneko_5
Patch Set: Rebase Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/CrossThreadCopier.h
diff --git a/third_party/WebKit/Source/platform/CrossThreadCopier.h b/third_party/WebKit/Source/platform/CrossThreadCopier.h
index de30baa00edcbd544efed937b4cce778f137a8a7..46448693ad2aed06db012efa407e1558948ea286 100644
--- a/third_party/WebKit/Source/platform/CrossThreadCopier.h
+++ b/third_party/WebKit/Source/platform/CrossThreadCopier.h
@@ -158,16 +158,6 @@ struct CrossThreadCopier<PassOwnPtr<T>> {
};
template <typename T>
-struct CrossThreadCopier<WeakMember<T>*> {
- STATIC_ONLY(CrossThreadCopier);
- typedef WeakMember<T>* Type;
- static Type copy(Type ptr)
- {
- return ptr;
- }
-};
-
-template <typename T>
struct CrossThreadCopier<WTF::PassedWrapper<T>> {
STATIC_ONLY(CrossThreadCopier);
using Type = WTF::PassedWrapper<typename CrossThreadCopier<T>::Type>;
@@ -225,17 +215,6 @@ struct CrossThreadCopier<Member<T>> {
}
};
-template <typename T>
-struct CrossThreadCopier<WeakMember<T>> {
- STATIC_ONLY(CrossThreadCopier);
- static_assert(IsGarbageCollectedType<T>::value, "T must be a garbage-collected type.");
- typedef T* Type;
- static Type copy(const WeakMember<T>& ptr)
- {
- return ptr;
- }
-};
-
// |T| is |C*| or |const WeakPtr<C>&|.
template <typename T>
struct AllowCrossThreadAccessWrapper {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698