1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "mojo/edk/system/message_pipe_endpoint.h"
7 #include "base/logging.h"
12 void MessagePipeEndpoint::CancelAllWaiters() {
16 MojoResult MessagePipeEndpoint::ReadMessage(UserPointer<void> /*bytes*/,
17 UserPointer<uint32_t> /*num_bytes*/,
18 DispatcherVector* /*dispatchers*/,
19 uint32_t* /*num_dispatchers*/,
20 MojoReadMessageFlags /*flags*/) {
22 return MOJO_RESULT_INTERNAL;
25 HandleSignalsState MessagePipeEndpoint::GetHandleSignalsState() const {
27 return HandleSignalsState();
30 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
31 MojoHandleSignals /*signals*/,
33 HandleSignalsState* signals_state) {
36 *signals_state = HandleSignalsState();
37 return MOJO_RESULT_INTERNAL;
40 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/,
41 HandleSignalsState* signals_state) {
44 *signals_state = HandleSignalsState();
47 void MessagePipeEndpoint::Attach(ChannelEndpoint* /*channel_endpoint*/) {