Commit 04252f6e authored by Darin Fisher's avatar Darin Fisher Committed by Commit Bot

Remove OwnedReceiverSet in favor of UniqueReceiverSet

Change-Id: I13b8a55916bfe8aaa8380b08874496f53409882d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1639346Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Darin Fisher <darin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665603}
parent afa7bfb9
...@@ -338,14 +338,6 @@ class ReceiverSetBase { ...@@ -338,14 +338,6 @@ class ReceiverSetBase {
template <typename Interface, typename ContextType = void> template <typename Interface, typename ContextType = void>
using ReceiverSet = ReceiverSetBase<Receiver<Interface>, ContextType>; using ReceiverSet = ReceiverSetBase<Receiver<Interface>, ContextType>;
// Helper for a set of Receivers where each bound Receiver is tied to an owned
// implementation. The |Add()| method takes a std::unique_ptr<Interface> for
// each bound implementation.
template <typename Interface, typename ContextType = void>
using OwnedReceiverSet =
ReceiverSetBase<Receiver<Interface, UniquePtrImplRefTraits<Interface>>,
ContextType>;
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_CPP_BINDINGS_RECEIVER_SET_H_ #endif // MOJO_PUBLIC_CPP_BINDINGS_RECEIVER_SET_H_
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#include "mojo/public/cpp/bindings/associated_receiver_set.h" #include "mojo/public/cpp/bindings/associated_receiver_set.h"
#include "mojo/public/cpp/bindings/associated_remote.h" #include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/bindings/receiver.h" #include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/remote.h" #include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/unique_receiver_set.h"
#include "mojo/public/interfaces/bindings/tests/new_endpoint_types.test-mojom.h" #include "mojo/public/interfaces/bindings/tests/new_endpoint_types.test-mojom.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
...@@ -71,7 +71,7 @@ class FactoryImpl : public mojom::WidgetFactory { ...@@ -71,7 +71,7 @@ class FactoryImpl : public mojom::WidgetFactory {
private: private:
mojo::Receiver<mojom::WidgetFactory> receiver_; mojo::Receiver<mojom::WidgetFactory> receiver_;
mojo::OwnedReceiverSet<mojom::Widget> widgets_; mojo::UniqueReceiverSet<mojom::Widget> widgets_;
DISALLOW_COPY_AND_ASSIGN(FactoryImpl); DISALLOW_COPY_AND_ASSIGN(FactoryImpl);
}; };
......
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