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

Unified Diff: ipc/ipc_channel_reader.h

Issue 10541065: Separate out IPC::Message::Sender and channel::Listener into a separate class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: de-inline 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_channel_proxy.cc ('k') | ipc/ipc_channel_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_reader.h
diff --git a/ipc/ipc_channel_reader.h b/ipc/ipc_channel_reader.h
index 192ca2dd97b70046023b8f51c25b5a8f918860b8..9c398bdce356791f6ba8e22e9174c5c989d190b4 100644
--- a/ipc/ipc_channel_reader.h
+++ b/ipc/ipc_channel_reader.h
@@ -25,10 +25,10 @@ namespace internal {
// here (and rename appropriately) rather than writing a different class.
class ChannelReader {
public:
- explicit ChannelReader(Channel::Listener* listener);
+ explicit ChannelReader(Listener* listener);
virtual ~ChannelReader();
- void set_listener(Channel::Listener* listener) { listener_ = listener; }
+ void set_listener(Listener* listener) { listener_ = listener; }
// Call to process messages received from the IPC connection and dispatch
// them. Returns false on channel error. True indicates that everything
@@ -49,7 +49,7 @@ class ChannelReader {
protected:
enum ReadState { READ_SUCCEEDED, READ_FAILED, READ_PENDING };
- Channel::Listener* listener() const { return listener_; }
+ Listener* listener() const { return listener_; }
// Populates the given buffer with data from the pipe.
//
@@ -86,7 +86,7 @@ class ChannelReader {
// Returns true on success. False means channel error.
bool DispatchInputData(const char* input_data, int input_data_len);
- Channel::Listener* listener_;
+ Listener* listener_;
// We read from the pipe into this buffer. Managed by DispatchInputData, do
// not access directly outside that function.
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_channel_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698