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

Unified Diff: content/renderer/media/video_capture_impl_manager.h

Issue 978993002: Changed thread_checker on VideoCaptureImpl and VideoCaptureImplManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/media/video_capture_impl_manager.h
diff --git a/content/renderer/media/video_capture_impl_manager.h b/content/renderer/media/video_capture_impl_manager.h
index 5bcc7b2a6c3b24215bfcacd2d18cb15807f3a647..3a9a5cd50ab63328cf826393dab4e369e0e0abaa 100644
--- a/content/renderer/media/video_capture_impl_manager.h
+++ b/content/renderer/media/video_capture_impl_manager.h
@@ -39,6 +39,9 @@ namespace content {
class VideoCaptureImpl;
class VideoCaptureMessageFilter;
+// VideoCaptureImplManager provides access to the representations of capture
+// device in renderer process.
+// All methods must be called on the IO thread.
mcasas 2015/03/06 19:18:29 The docs for the class are, oddly enough, on the b
emircan 2015/03/10 23:38:36 Done.
class CONTENT_EXPORT VideoCaptureImplManager {
public:
VideoCaptureImplManager();
@@ -118,8 +121,9 @@ class CONTENT_EXPORT VideoCaptureImplManager {
scoped_refptr<VideoCaptureMessageFilter> filter_;
- // Bound to the render thread.
- base::ThreadChecker thread_checker_;
+ // Hold a pointer to the IO message loop to check we operate on the right
+ // thread.
+ scoped_refptr<base::MessageLoopProxy> io_message_loop_;
mcasas 2015/03/06 19:18:29 Make const. That way, by reading the class declara
emircan 2015/03/10 23:38:36 Done.
// Bound to the render thread.
// NOTE: Weak pointers must be invalidated before all other member variables.

Powered by Google App Engine
This is Rietveld 408576698