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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 343593006: Revert 276939 "Decouple IPC::MessageFilter from IPC::Channel" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2057/src/
Patch Set: 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 | « content/common/gpu/gpu_channel.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/gpu_video_decode_accelerator.cc
===================================================================
--- content/common/gpu/media/gpu_video_decode_accelerator.cc (revision 278168)
+++ content/common/gpu/media/gpu_video_decode_accelerator.cc (working copy)
@@ -76,12 +76,12 @@
MessageFilter(GpuVideoDecodeAccelerator* owner, int32 host_route_id)
: owner_(owner), host_route_id_(host_route_id) {}
- virtual void OnChannelError() OVERRIDE { sender_ = NULL; }
+ virtual void OnChannelError() OVERRIDE { channel_ = NULL; }
- virtual void OnChannelClosing() OVERRIDE { sender_ = NULL; }
+ virtual void OnChannelClosing() OVERRIDE { channel_ = NULL; }
- virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE {
- sender_ = sender;
+ virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE {
+ channel_ = channel;
}
virtual void OnFilterRemoved() OVERRIDE {
@@ -103,11 +103,11 @@
bool SendOnIOThread(IPC::Message* message) {
DCHECK(!message->is_sync());
- if (!sender_) {
+ if (!channel_) {
delete message;
return false;
}
- return sender_->Send(message);
+ return channel_->Send(message);
}
protected:
@@ -116,8 +116,8 @@
private:
GpuVideoDecodeAccelerator* owner_;
int32 host_route_id_;
- // The sender to which this filter was added.
- IPC::Sender* sender_;
+ // The channel to which this filter was added.
+ IPC::Channel* channel_;
};
GpuVideoDecodeAccelerator::GpuVideoDecodeAccelerator(
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698