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

Side by Side Diff: ipc/ipc_test_sink.cc

Issue 601563002: Remove IPC::Channel::TakePipeHandle() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Nacl build error Created 6 years, 3 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
« no previous file with comments | « ipc/ipc_test_sink.h ('k') | ipc/mojo/ipc_channel_mojo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22 matching lines...) Expand all
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 { 38 base::ProcessId TestSink::GetSelfPID() const {
39 NOTIMPLEMENTED(); 39 NOTIMPLEMENTED();
40 return base::ProcessId(); 40 return base::ProcessId();
41 } 41 }
42 42
43 ChannelHandle TestSink::TakePipeHandle() {
44 NOTIMPLEMENTED();
45 return ChannelHandle();
46 }
47
48 bool TestSink::OnMessageReceived(const Message& msg) { 43 bool TestSink::OnMessageReceived(const Message& msg) {
49 ObserverListBase<Listener>::Iterator it(filter_list_); 44 ObserverListBase<Listener>::Iterator it(filter_list_);
50 Listener* observer; 45 Listener* observer;
51 while ((observer = it.GetNext()) != NULL) { 46 while ((observer = it.GetNext()) != NULL) {
52 if (observer->OnMessageReceived(msg)) 47 if (observer->OnMessageReceived(msg))
53 return true; 48 return true;
54 } 49 }
55 50
56 // No filter handled the message, so store it. 51 // No filter handled the message, so store it.
57 messages_.push_back(Message(msg)); 52 messages_.push_back(Message(msg));
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 101 }
107 102
108 int TestSink::TakeClientFileDescriptor() { 103 int TestSink::TakeClientFileDescriptor() {
109 NOTREACHED(); 104 NOTREACHED();
110 return -1; 105 return -1;
111 } 106 }
112 107
113 #endif // defined(OS_POSIX) && !defined(OS_NACL) 108 #endif // defined(OS_POSIX) && !defined(OS_NACL)
114 109
115 } // namespace IPC 110 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_test_sink.h ('k') | ipc/mojo/ipc_channel_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698