summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_reader.h
diff options
context:
space:
mode:
authorhubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-15 00:07:00 +0000
committerhubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-15 00:07:00 +0000
commitdc875dc95290a9a5e4245e24e209a0496038f46c (patch)
tree30af6bb90080078ebe4adb96fe1c2a50df199f94 /ipc/ipc_channel_reader.h
parent3a678cfe431c44d9397e4616c676578f58ed69ca (diff)
downloadchromium_src-dc875dc95290a9a5e4245e24e209a0496038f46c.zip
chromium_src-dc875dc95290a9a5e4245e24e209a0496038f46c.tar.gz
chromium_src-dc875dc95290a9a5e4245e24e209a0496038f46c.tar.bz2
Alternative workaround for mac kernel bug.
BUG=298276 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227999 Review URL: https://codereview.chromium.org/25325002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_reader.h')
-rw-r--r--ipc/ipc_channel_reader.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/ipc/ipc_channel_reader.h b/ipc/ipc_channel_reader.h
index 9c398bd..1303846 100644
--- a/ipc/ipc_channel_reader.h
+++ b/ipc/ipc_channel_reader.h
@@ -42,8 +42,12 @@ class ChannelReader {
// data. See ReadData for more.
bool AsyncReadComplete(int bytes_read);
- // Returns true if the given message is the "hello" message sent on channel
- // set-up.
+ // Returns true if the given message is internal to the IPC implementation,
+ // like the "hello" message sent on channel set-up.
+ bool IsInternalMessage(const Message& m) const;
+
+ // Returns true if the given message is an Hello message
+ // sent on channel set-up.
bool IsHelloMessage(const Message& m) const;
protected:
@@ -76,8 +80,8 @@ class ChannelReader {
// though there could be more data ready to be read from the OS.
virtual bool DidEmptyInputBuffers() = 0;
- // Handles the first message sent over the pipe which contains setup info.
- virtual void HandleHelloMessage(const Message& msg) = 0;
+ // Handles internal messages, like the hello message sent on channel startup.
+ virtual void HandleInternalMessage(const Message& msg) = 0;
private:
// Takes the given data received from the IPC channel and dispatches any