Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: ipc/ipc_test_sink.cc

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ipc/ipc_test_sink.h" 5 #include "ipc/ipc_test_sink.h"
6 6
7 #include "ipc/ipc_listener.h" 7 #include "ipc/ipc_listener.h"
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 9
10 namespace IPC { 10 namespace IPC {
(...skipping 17 matching lines...) Expand all
28 28
29 void TestSink::Close() { 29 void TestSink::Close() {
30 NOTIMPLEMENTED(); 30 NOTIMPLEMENTED();
31 } 31 }
32 32
33 base::ProcessId TestSink::GetPeerPID() const { 33 base::ProcessId TestSink::GetPeerPID() const {
34 NOTIMPLEMENTED(); 34 NOTIMPLEMENTED();
35 return base::ProcessId(); 35 return base::ProcessId();
36 } 36 }
37 37
38 base::ProcessId TestSink::GetSelfPID() const {
39 NOTIMPLEMENTED();
40 return base::ProcessId();
41 }
42
43 ChannelHandle TestSink::TakePipeHandle() {
44 NOTIMPLEMENTED();
45 return ChannelHandle();
46 }
38 47
39 bool TestSink::OnMessageReceived(const Message& msg) { 48 bool TestSink::OnMessageReceived(const Message& msg) {
40 ObserverListBase<Listener>::Iterator it(filter_list_); 49 ObserverListBase<Listener>::Iterator it(filter_list_);
41 Listener* observer; 50 Listener* observer;
42 while ((observer = it.GetNext()) != NULL) { 51 while ((observer = it.GetNext()) != NULL) {
43 if (observer->OnMessageReceived(msg)) 52 if (observer->OnMessageReceived(msg))
44 return true; 53 return true;
45 } 54 }
46 55
47 // No filter handled the message, so store it. 56 // No filter handled the message, so store it.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 106 }
98 107
99 int TestSink::TakeClientFileDescriptor() { 108 int TestSink::TakeClientFileDescriptor() {
100 NOTREACHED(); 109 NOTREACHED();
101 return -1; 110 return -1;
102 } 111 }
103 112
104 #endif // defined(OS_POSIX) && !defined(OS_NACL) 113 #endif // defined(OS_POSIX) && !defined(OS_NACL)
105 114
106 } // namespace IPC 115 } // namespace IPC
OLDNEW
« ipc/ipc_channel.h ('K') | « ipc/ipc_test_sink.h ('k') | ipc/mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698