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

Unified Diff: ipc/ipc_mojo_bootstrap.cc

Issue 2137353002: Adds associated interface support to IPC::Channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@channel-bindings-1
Patch Set: . Created 4 years, 5 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 | « ipc/ipc_mojo_bootstrap.h ('k') | ipc/ipc_test.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_mojo_bootstrap.cc
diff --git a/ipc/ipc_mojo_bootstrap.cc b/ipc/ipc_mojo_bootstrap.cc
index dc8ffdc8134dce5d8b6b962f8cadfadcd4e3dd00..425f794858f02732f6ccf5736f51c0fcfadfb84f 100644
--- a/ipc/ipc_mojo_bootstrap.cc
+++ b/ipc/ipc_mojo_bootstrap.cc
@@ -591,6 +591,11 @@ class BootstrapMasterBinding {
endpoint_client_->set_connection_error_handler(handler);
}
+ mojo::AssociatedGroup* associated_group() {
+ DCHECK(controller_);
+ return controller_->associated_group();
+ }
+
void Bind(mojo::ScopedMessagePipeHandle handle) {
DCHECK(!controller_);
controller_ =
@@ -621,6 +626,9 @@ class MojoServerBootstrap : public MojoBootstrap {
private:
// MojoBootstrap implementation.
void Connect() override;
+ mojo::AssociatedGroup* GetAssociatedGroup() override {
+ return bootstrap_.associated_group();
+ }
void OnInitDone(int32_t peer_pid);
@@ -680,6 +688,9 @@ class MojoClientBootstrap : public MojoBootstrap, public mojom::Bootstrap {
private:
// MojoBootstrap implementation.
void Connect() override;
+ mojo::AssociatedGroup* GetAssociatedGroup() override {
+ return binding_.associated_group();
+ }
// mojom::Bootstrap implementation.
void Init(mojom::ChannelAssociatedRequest receive_channel,
« no previous file with comments | « ipc/ipc_mojo_bootstrap.h ('k') | ipc/ipc_test.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698