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/system/message_pipe_endpoint.h"
7 #include "base/logging.h"
12 void MessagePipeEndpoint::Close() {
16 void MessagePipeEndpoint::CancelAllWaiters() {
20 MojoResult MessagePipeEndpoint::ReadMessage(UserPointer<void> /*bytes*/,
21 UserPointer<uint32_t> /*num_bytes*/,
22 DispatcherVector* /*dispatchers*/,
23 uint32_t* /*num_dispatchers*/,
24 MojoReadMessageFlags /*flags*/) {
26 return MOJO_RESULT_INTERNAL;
29 HandleSignalsState MessagePipeEndpoint::GetHandleSignalsState() const {
31 return HandleSignalsState();
34 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
35 MojoHandleSignals /*signals*/,
37 HandleSignalsState* signals_state) {
40 *signals_state = HandleSignalsState();
41 return MOJO_RESULT_INTERNAL;
44 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/,
45 HandleSignalsState* signals_state) {
48 *signals_state = HandleSignalsState();
51 void MessagePipeEndpoint::Attach(ChannelEndpoint* /*channel_endpoint*/) {