Combine AsyncChannel, SyncChannel, and RPCChannel into one class (bug 901789, r=cjones,bent).

This commit is contained in:
David Anderson
2013-09-27 18:42:08 -07:00
parent b4cef087f5
commit d2c237dd72
44 changed files with 2721 additions and 2117 deletions

View File

@@ -15,7 +15,7 @@
using std::string;
using mozilla::ipc::RPCChannel;
using mozilla::ipc::MessageChannel;
namespace {
@@ -67,9 +67,9 @@ NPRemoteWindow::NPRemoteWindow() :
clipRect.right = 0;
}
RPCChannel::RacyRPCPolicy
MediateRace(const RPCChannel::Message& parent,
const RPCChannel::Message& child)
ipc::RacyRPCPolicy
MediateRace(const MessageChannel::Message& parent,
const MessageChannel::Message& child)
{
switch (parent.type()) {
case PPluginInstance::Msg_Paint__ID:
@@ -78,10 +78,10 @@ MediateRace(const RPCChannel::Message& parent,
case PPluginInstance::Msg_NPP_HandleEvent_IOSurface__ID:
// our code relies on the frame list not changing during paints and
// reflows
return RPCChannel::RRPParentWins;
return ipc::RRPParentWins;
default:
return RPCChannel::RRPChildWins;
return ipc::RRPChildWins;
}
}