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

Unified Diff: content/renderer/media/video_capture_message_filter.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/renderer/media/video_capture_message_filter.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_message_filter.cc
===================================================================
--- content/renderer/media/video_capture_message_filter.cc (revision 278168)
+++ content/renderer/media/video_capture_message_filter.cc (working copy)
@@ -6,13 +6,13 @@
#include "content/common/media/video_capture_messages.h"
#include "content/common/view_messages.h"
-#include "ipc/ipc_sender.h"
+#include "ipc/ipc_channel.h"
namespace content {
VideoCaptureMessageFilter::VideoCaptureMessageFilter()
: last_device_id_(0),
- sender_(NULL) {
+ channel_(NULL) {
}
void VideoCaptureMessageFilter::AddDelegate(Delegate* delegate) {
@@ -21,7 +21,7 @@
while (delegates_.find(last_device_id_) != delegates_.end())
last_device_id_++;
- if (sender_) {
+ if (channel_) {
delegates_[last_device_id_] = delegate;
delegate->OnDelegateAdded(last_device_id_);
} else {
@@ -47,12 +47,12 @@
}
bool VideoCaptureMessageFilter::Send(IPC::Message* message) {
- if (!sender_) {
+ if (!channel_) {
delete message;
return false;
}
- return sender_->Send(message);
+ return channel_->Send(message);
}
bool VideoCaptureMessageFilter::OnMessageReceived(const IPC::Message& message) {
@@ -73,9 +73,9 @@
return handled;
}
-void VideoCaptureMessageFilter::OnFilterAdded(IPC::Sender* sender) {
+void VideoCaptureMessageFilter::OnFilterAdded(IPC::Channel* channel) {
DVLOG(1) << "VideoCaptureMessageFilter::OnFilterAdded()";
- sender_ = sender;
+ channel_ = channel;
for (Delegates::iterator it = pending_delegates_.begin();
it != pending_delegates_.end(); it++) {
@@ -86,11 +86,11 @@
}
void VideoCaptureMessageFilter::OnFilterRemoved() {
- sender_ = NULL;
+ channel_ = NULL;
}
void VideoCaptureMessageFilter::OnChannelClosing() {
- sender_ = NULL;
+ channel_ = NULL;
}
VideoCaptureMessageFilter::~VideoCaptureMessageFilter() {}
« no previous file with comments | « content/renderer/media/video_capture_message_filter.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698