Add support in mojo to check if a MojoHandle identifies a message pipe.
commit9087c076a51c500b2367b96bbf63b8ab17a13da9
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 17 Jul 2014 07:07:24 +0000 (17 07:07 +0000)
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 17 Jul 2014 07:07:24 +0000 (17 07:07 +0000)
tree96323c63bdf7f5eca442d4c2ecca60e62ddc4f4d
parente29744093745c0277895265ea336b769e0b3c5ae
Add support in mojo to check if a MojoHandle identifies a message pipe.

Updated mojo spy to use the newly added function MojoIsMessagePipe to check if the handle
coming back from the ReadMessageRaw call is a message pipe. If yes we go ahead and intercept it.

Removed the hacks added in the previous patch which assumed that the first handle coming back from
the vendor is a message pipe.

BUG=360188

Review URL: https://codereview.chromium.org/391233002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283680 0039d316-1c4b-4281-b951-d872f2087c98
mojo/spy/spy.cc