Commit 9a33673c authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Remove cross thread copier templaces for old mojo types.

These definitions are no longer needed.

BUG=978694

Change-Id: Ia066b668bc60754101d0e267e9669f082a7bb5b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1842036
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Reviewed-by: default avatarMario Sanchez Prada <mario@igalia.com>
Cr-Commit-Position: refs/heads/master@{#703240}
parent cb41ede1
...@@ -265,25 +265,6 @@ struct CrossThreadCopier<String> { ...@@ -265,25 +265,6 @@ struct CrossThreadCopier<String> {
WTF_EXPORT static Type Copy(const String&); WTF_EXPORT static Type Copy(const String&);
}; };
// mojo::InterfacePtrInfo is a cross-thread safe mojo::InterfacePtr.
template <typename Interface>
struct CrossThreadCopier<mojo::InterfacePtrInfo<Interface>> {
STATIC_ONLY(CrossThreadCopier);
using Type = mojo::InterfacePtrInfo<Interface>;
static Type Copy(Type ptr_info) {
return ptr_info; // This is in fact a move.
}
};
template <typename Interface>
struct CrossThreadCopier<mojo::InterfaceRequest<Interface>> {
STATIC_ONLY(CrossThreadCopier);
using Type = mojo::InterfaceRequest<Interface>;
static Type Copy(Type request) {
return request; // This is in fact a move.
}
};
template <typename Interface> template <typename Interface>
struct CrossThreadCopier<mojo::PendingReceiver<Interface>> { struct CrossThreadCopier<mojo::PendingReceiver<Interface>> {
STATIC_ONLY(CrossThreadCopier); STATIC_ONLY(CrossThreadCopier);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment