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

Unified Diff: ppapi/proxy/plugin_message_filter.cc

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landing Created 6 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 | « ppapi/proxy/plugin_message_filter.h ('k') | win8/viewer/metro_viewer_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_message_filter.cc
diff --git a/ppapi/proxy/plugin_message_filter.cc b/ppapi/proxy/plugin_message_filter.cc
index 5652a435a9695df3679b3f304f6bdb6debc0d438..18469579b3839b002afe49272a7d6fa4ee5d6e4d 100644
--- a/ppapi/proxy/plugin_message_filter.cc
+++ b/ppapi/proxy/plugin_message_filter.cc
@@ -23,18 +23,18 @@ PluginMessageFilter::PluginMessageFilter(
scoped_refptr<ResourceReplyThreadRegistrar> registrar)
: seen_instance_ids_(seen_instance_ids),
resource_reply_thread_registrar_(registrar),
- channel_(NULL) {
+ sender_(NULL) {
}
PluginMessageFilter::~PluginMessageFilter() {
}
-void PluginMessageFilter::OnFilterAdded(IPC::Channel* channel) {
- channel_ = channel;
+void PluginMessageFilter::OnFilterAdded(IPC::Sender* sender) {
+ sender_ = sender;
}
void PluginMessageFilter::OnFilterRemoved() {
- channel_ = NULL;
+ sender_ = NULL;
}
bool PluginMessageFilter::OnMessageReceived(const IPC::Message& message) {
@@ -48,8 +48,8 @@ bool PluginMessageFilter::OnMessageReceived(const IPC::Message& message) {
}
bool PluginMessageFilter::Send(IPC::Message* msg) {
- if (channel_)
- return channel_->Send(msg);
+ if (sender_)
+ return sender_->Send(msg);
delete msg;
return false;
}
« no previous file with comments | « ppapi/proxy/plugin_message_filter.h ('k') | win8/viewer/metro_viewer_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698