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

Unified Diff: ipc/ipc_test_sink.h

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_sync_channel.cc ('k') | ipc/ipc_test_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_sink.h
diff --git a/ipc/ipc_test_sink.h b/ipc/ipc_test_sink.h
index 735fa1b30e89f4cb5e848963139c8791c1c2bfcb..1cdac2ae62eaf8042214807e77dc0537b5a7e1db 100644
--- a/ipc/ipc_test_sink.h
+++ b/ipc/ipc_test_sink.h
@@ -53,7 +53,7 @@ class Message;
// This can be useful if you need to wait for a particular message that will
// be posted asynchronously. Example usage:
//
-// class MyListener : public IPC::Channel::Listener {
+// class MyListener : public IPC::Listener {
// public:
// virtual bool OnMessageReceived(const IPC::Message& msg) {
// <do something with the message>
@@ -112,15 +112,15 @@ class TestSink : public Channel {
// the filters, in the order they were added. If a filter returns true
// from OnMessageReceived, subsequent filters will not receive the message
// and the TestSink will not store it.
- void AddFilter(Channel::Listener* filter);
+ void AddFilter(Listener* filter);
// Removes the given filter from the TestSink.
- void RemoveFilter(Channel::Listener* filter);
+ void RemoveFilter(Listener* filter);
private:
// The actual list of received messages.
std::vector<Message> messages_;
- ObserverList<Channel::Listener> filter_list_;
+ ObserverList<Listener> filter_list_;
DISALLOW_COPY_AND_ASSIGN(TestSink);
};
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | ipc/ipc_test_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698