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

Unified Diff: ipc/ipc_channel.h

Issue 2697033004: Mojo C++ bindings: remove usage of AssociatedGroup from ipc/ (Closed)
Patch Set: . Created 3 years, 10 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 | ipc/ipc_channel_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel.h
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h
index 4a2014412af48ffbf4ea0d79e545ceccc0e98ed6..527c949349c091c8515bc239acb91eba7d894254 100644
--- a/ipc/ipc_channel.h
+++ b/ipc/ipc_channel.h
@@ -22,7 +22,6 @@
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_sender.h"
-#include "mojo/public/cpp/bindings/associated_group.h"
#include "mojo/public/cpp/bindings/associated_interface_ptr.h"
#include "mojo/public/cpp/bindings/associated_interface_request.h"
#include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
@@ -92,10 +91,6 @@ class IPC_EXPORT Channel : public Sender {
virtual ~AssociatedInterfaceSupport() {}
- // Accesses the AssociatedGroup used to associate new interface endpoints
- // with this Channel. Must be safe to call from any thread.
- virtual mojo::AssociatedGroup* GetAssociatedGroup() = 0;
-
// Returns a ThreadSafeForwarded for this channel which can be used to
// safely send mojom::Channel requests from arbitrary threads.
virtual std::unique_ptr<mojo::ThreadSafeForwarder<mojom::Channel>>
@@ -128,8 +123,7 @@ class IPC_EXPORT Channel : public Sender {
template <typename Interface>
void GetRemoteAssociatedInterface(
mojo::AssociatedInterfacePtr<Interface>* proxy) {
- mojo::AssociatedInterfaceRequest<Interface> request =
- mojo::MakeRequest(proxy, GetAssociatedGroup());
+ auto request = mojo::MakeRequest(proxy);
GetGenericRemoteAssociatedInterface(
Interface::Name_, request.PassHandle());
}
« no previous file with comments | « no previous file | ipc/ipc_channel_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698