• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
CancelAllWaiters()13 void MessagePipeEndpoint::CancelAllWaiters() {
14   NOTREACHED();
15 }
16 
ReadMessage(void *,uint32_t *,std::vector<scoped_refptr<Dispatcher>> *,uint32_t *,MojoReadMessageFlags)17 MojoResult MessagePipeEndpoint::ReadMessage(
18     void* /*bytes*/, uint32_t* /*num_bytes*/,
19     std::vector<scoped_refptr<Dispatcher> >* /*dispatchers*/,
20     uint32_t* /*num_dispatchers*/,
21     MojoReadMessageFlags /*flags*/) {
22   NOTREACHED();
23   return MOJO_RESULT_INTERNAL;
24 }
25 
AddWaiter(Waiter *,MojoWaitFlags,MojoResult)26 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
27                                           MojoWaitFlags /*flags*/,
28                                           MojoResult /*wake_result*/) {
29   NOTREACHED();
30   return MOJO_RESULT_INTERNAL;
31 }
32 
RemoveWaiter(Waiter *)33 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/) {
34   NOTREACHED();
35 }
36 
Attach(scoped_refptr<Channel>,MessageInTransit::EndpointId)37 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/,
38                                  MessageInTransit::EndpointId /*local_id*/) {
39   NOTREACHED();
40 }
41 
Run(MessageInTransit::EndpointId)42 bool MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) {
43   NOTREACHED();
44   return true;
45 }
46 
47 }  // namespace system
48 }  // namespace mojo
49 
50