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

Unified Diff: ipc/ipc_test_sink.cc

Issue 10698057: Remove Message::Sender and Channel::Listener typedefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_test_sink.h ('k') | ipc/ipc_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_sink.cc
diff --git a/ipc/ipc_test_sink.cc b/ipc/ipc_test_sink.cc
index 44042390727c75455a5758e16cb55c1be521610a..2dc889841fe8eb6f1475c146b7abcfa4daf20e43 100644
--- a/ipc/ipc_test_sink.cc
+++ b/ipc/ipc_test_sink.cc
@@ -21,8 +21,8 @@ bool TestSink::Send(Message* message) {
}
bool TestSink::OnMessageReceived(const Message& msg) {
- ObserverListBase<Channel::Listener>::Iterator it(filter_list_);
- Channel::Listener* observer;
+ ObserverListBase<Listener>::Iterator it(filter_list_);
+ Listener* observer;
while ((observer = it.GetNext()) != NULL) {
if (observer->OnMessageReceived(msg))
return true;
@@ -65,11 +65,11 @@ const Message* TestSink::GetUniqueMessageMatching(uint32 id) const {
return &messages_[found_index];
}
-void TestSink::AddFilter(Channel::Listener* filter) {
+void TestSink::AddFilter(Listener* filter) {
filter_list_.AddObserver(filter);
}
-void TestSink::RemoveFilter(Channel::Listener* filter) {
+void TestSink::RemoveFilter(Listener* filter) {
filter_list_.RemoveObserver(filter);
}
« no previous file with comments | « ipc/ipc_test_sink.h ('k') | ipc/ipc_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698