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

Unified Diff: content/renderer/video_capture_message_filter.cc

Issue 7058055: create one video capture message filter per renderer process (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: from code review Created 9 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
Index: content/renderer/video_capture_message_filter.cc
===================================================================
--- content/renderer/video_capture_message_filter.cc (revision 88354)
+++ content/renderer/video_capture_message_filter.cc (working copy)
@@ -4,8 +4,8 @@
#include "content/renderer/video_capture_message_filter.h"
-#include "content/common/child_process.h"
#include "content/common/video_capture_messages.h"
+#include "content/common/view_messages.h"
#include "content/renderer/render_thread.h"
VideoCaptureMessageFilter::VideoCaptureMessageFilter(int32 route_id)
@@ -23,14 +23,6 @@
return false;
}
- if (!message_loop_proxy_->BelongsToCurrentThread()) {
- // Can only access the IPC::Channel on the IPC thread since it's not thread
- // safe.
- message_loop_proxy_->PostTask(FROM_HERE,
- NewRunnableMethod(this, &VideoCaptureMessageFilter::Send, message));
- return true;
- }
-
message->set_routing_id(route_id_);
return channel_->Send(message);
}
@@ -152,13 +144,3 @@
}
}
-void VideoCaptureMessageFilter::AddFilter() {
- if (MessageLoop::current() != ChildThread::current()->message_loop()) {
- ChildThread::current()->message_loop()->PostTask(
- FROM_HERE, NewRunnableMethod(this,
- &VideoCaptureMessageFilter::AddFilter));
- return;
- }
-
- RenderThread::current()->AddFilter(this);
-}
« no previous file with comments | « content/renderer/video_capture_message_filter.h ('k') | content/renderer/video_capture_message_filter_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698