| Index: ppapi/proxy/plugin_message_filter.cc
|
| ===================================================================
|
| --- ppapi/proxy/plugin_message_filter.cc (revision 278168)
|
| +++ ppapi/proxy/plugin_message_filter.cc (working copy)
|
| @@ -23,18 +23,18 @@
|
| scoped_refptr<ResourceReplyThreadRegistrar> registrar)
|
| : seen_instance_ids_(seen_instance_ids),
|
| resource_reply_thread_registrar_(registrar),
|
| - sender_(NULL) {
|
| + channel_(NULL) {
|
| }
|
|
|
| PluginMessageFilter::~PluginMessageFilter() {
|
| }
|
|
|
| -void PluginMessageFilter::OnFilterAdded(IPC::Sender* sender) {
|
| - sender_ = sender;
|
| +void PluginMessageFilter::OnFilterAdded(IPC::Channel* channel) {
|
| + channel_ = channel;
|
| }
|
|
|
| void PluginMessageFilter::OnFilterRemoved() {
|
| - sender_ = NULL;
|
| + channel_ = NULL;
|
| }
|
|
|
| bool PluginMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
| @@ -48,8 +48,8 @@
|
| }
|
|
|
| bool PluginMessageFilter::Send(IPC::Message* msg) {
|
| - if (sender_)
|
| - return sender_->Send(msg);
|
| + if (channel_)
|
| + return channel_->Send(msg);
|
| delete msg;
|
| return false;
|
| }
|
|
|