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

Side by Side Diff: ipc/ipc_channel_common.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: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "ipc/ipc_channel.h" 6 #include "ipc/ipc_channel.h"
7 #include "ipc/ipc_channel_mojo.h" 7 #include "ipc/ipc_channel_mojo.h"
8 #include "mojo/public/cpp/system/message_pipe.h" 8 #include "mojo/public/cpp/system/message_pipe.h"
9 9
10 namespace IPC { 10 namespace IPC {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 mojo::MessagePipe message_pipe; 77 mojo::MessagePipe message_pipe;
78 *handle0 = ChannelHandle(name); 78 *handle0 = ChannelHandle(name);
79 handle0->mojo_handle = message_pipe.handle0.release(); 79 handle0->mojo_handle = message_pipe.handle0.release();
80 *handle1 = ChannelHandle(name); 80 *handle1 = ChannelHandle(name);
81 handle1->mojo_handle = message_pipe.handle1.release(); 81 handle1->mojo_handle = message_pipe.handle1.release();
82 } 82 }
83 83
84 Channel::~Channel() { 84 Channel::~Channel() {
85 } 85 }
86 86
87 mojo::AssociatedGroup* Channel::GetAssociatedGroup() {
88 NOTREACHED() <<
89 "Associated interfaces are not supported on this Channel implementation.";
90 return nullptr;
91 }
92
93 void Channel::AddGenericAssociatedInterface(
94 const std::string& name,
95 const GenericAssociatedInterfaceFactory& factory) {
96 NOTREACHED() <<
97 "Associated interfaces are not supported on this Channel implementation.";
98 }
99
100 void Channel::GetGenericRemoteAssociatedInterface(
101 const std::string& name,
102 mojo::ScopedInterfaceEndpointHandle handle) {
103 NOTREACHED() <<
104 "Associated interfaces are not supported on this Channel implementation.";
105 }
106
87 bool Channel::IsSendThreadSafe() const { 107 bool Channel::IsSendThreadSafe() const {
88 return false; 108 return false;
89 } 109 }
90 110
91 void Channel::OnSetAttachmentBrokerEndpoint() { 111 void Channel::OnSetAttachmentBrokerEndpoint() {
92 CHECK(!did_start_connect_); 112 CHECK(!did_start_connect_);
93 } 113 }
94 114
95 void Channel::WillConnect() { 115 void Channel::WillConnect() {
96 did_start_connect_ = true; 116 did_start_connect_ = true;
97 } 117 }
98 118
99 } // namespace IPC 119 } // namespace IPC
100 120
OLDNEW
« ipc/ipc_channel.h ('K') | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698