Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / mojo / system / message_pipe_endpoint.cc
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.
4
5 #include "mojo/system/message_pipe_endpoint.h"
6
7 #include "base/logging.h"
8 #include "mojo/system/channel.h"
9
10 namespace mojo {
11 namespace system {
12
13 void MessagePipeEndpoint::Close() {
14   NOTREACHED();
15 }
16
17 void MessagePipeEndpoint::CancelAllWaiters() {
18   NOTREACHED();
19 }
20
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;
28 }
29
30 HandleSignalsState MessagePipeEndpoint::GetHandleSignalsState() const {
31   NOTREACHED();
32   return HandleSignalsState();
33 }
34
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;
43 }
44
45 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/,
46                                        HandleSignalsState* signals_state) {
47   NOTREACHED();
48   if (signals_state)
49     *signals_state = HandleSignalsState();
50 }
51
52 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/,
53                                  MessageInTransit::EndpointId /*local_id*/) {
54   NOTREACHED();
55 }
56
57 bool MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) {
58   NOTREACHED();
59   return true;
60 }
61
62 void MessagePipeEndpoint::OnRemove() {
63   NOTREACHED();
64 }
65
66 }  // namespace system
67 }  // namespace mojo