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

Unified Diff: content/renderer/video_capture_message_filter_creator.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
« no previous file with comments | « content/renderer/video_capture_message_filter_creator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/video_capture_message_filter_creator.cc
===================================================================
--- content/renderer/video_capture_message_filter_creator.cc (revision 0)
+++ content/renderer/video_capture_message_filter_creator.cc (revision 0)
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/video_capture_message_filter_creator.h"
+
+#include "content/renderer/video_capture_message_filter.h"
+
+VideoCaptureMessageFilterCreator::VideoCaptureMessageFilterCreator() {
+ filter_ = new VideoCaptureMessageFilter(1);
+}
+
+VideoCaptureMessageFilterCreator::~VideoCaptureMessageFilterCreator() {
+}
+
+// static
+VideoCaptureMessageFilter* VideoCaptureMessageFilterCreator::SharedFilter() {
+ return GetInstance()->filter_.get();
+}
+
+// static
+VideoCaptureMessageFilterCreator*
+ VideoCaptureMessageFilterCreator::GetInstance() {
+ return Singleton<VideoCaptureMessageFilterCreator>::get();
+}
+
Property changes on: content/renderer/video_capture_message_filter_creator.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/renderer/video_capture_message_filter_creator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698