Index: ipc/ipc_message_pipe_reader.cc |
diff --git a/ipc/ipc_message_pipe_reader.cc b/ipc/ipc_message_pipe_reader.cc |
index da2d85d981abfe184f99d31ca264d9239656e4fe..74c72858fcd179b8389583a85619b3eccb7dab19 100644 |
--- a/ipc/ipc_message_pipe_reader.cc |
+++ b/ipc/ipc_message_pipe_reader.cc |
@@ -115,6 +115,14 @@ bool MessagePipeReader::Send(std::unique_ptr<Message> message) { |
return result == MOJO_RESULT_OK; |
} |
+void MessagePipeReader::GetRemoteInterface( |
+ const std::string& name, |
+ mojo::ScopedInterfaceEndpointHandle handle) { |
+ mojom::GenericInterfaceAssociatedRequest request; |
+ request.Bind(std::move(handle)); |
+ sender_->GetAssociatedInterface(name, std::move(request)); |
+} |
+ |
void MessagePipeReader::Receive( |
mojo::Array<uint8_t> data, |
mojo::Array<mojom::SerializedHandlePtr> handles) { |
@@ -138,6 +146,14 @@ void MessagePipeReader::Receive( |
delegate_->OnMessageReceived(message); |
} |
+void MessagePipeReader::GetAssociatedInterface( |
+ const mojo::String& name, |
+ mojom::GenericInterfaceAssociatedRequest request) { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ if (delegate_) |
+ delegate_->OnAssociatedInterfaceRequest(name, request.PassHandle()); |
+} |
+ |
void MessagePipeReader::OnPipeError(MojoResult error) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
if (delegate_) |