Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / mojo / system / message_pipe_endpoint.cc
blob51f88ec1f7b00cc8e98b254aed62401eee8c099d
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"
8 #include "mojo/system/channel.h"
10 namespace mojo {
11 namespace system {
13 void MessagePipeEndpoint::Close() {
14 NOTREACHED();
17 void MessagePipeEndpoint::CancelAllWaiters() {
18 NOTREACHED();
21 MojoResult MessagePipeEndpoint::ReadMessage(UserPointer<void> /*bytes*/,
22 UserPointer<uint32_t> /*num_bytes*/,
23 DispatcherVector* /*dispatchers*/,
24 uint32_t* /*num_dispatchers*/,
25 MojoReadMessageFlags /*flags*/) {
26 NOTREACHED();
27 return MOJO_RESULT_INTERNAL;
30 HandleSignalsState MessagePipeEndpoint::GetHandleSignalsState() const {
31 NOTREACHED();
32 return HandleSignalsState();
35 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
36 MojoHandleSignals /*signals*/,
37 uint32_t /*context*/,
38 HandleSignalsState* signals_state) {
39 NOTREACHED();
40 if (signals_state)
41 *signals_state = HandleSignalsState();
42 return MOJO_RESULT_INTERNAL;
45 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/,
46 HandleSignalsState* signals_state) {
47 NOTREACHED();
48 if (signals_state)
49 *signals_state = HandleSignalsState();
52 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/,
53 MessageInTransit::EndpointId /*local_id*/) {
54 NOTREACHED();
57 bool MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) {
58 NOTREACHED();
59 return true;
62 void MessagePipeEndpoint::OnRemove() {
63 NOTREACHED();
66 } // namespace system
67 } // namespace mojo