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

Unified Diff: media/video/capture/mac/video_capture_device_mac.h

Issue 66183002: Replace MessageLoopProxy with SingleThreadTaskRunner for the rest of media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win and audio tests Created 6 years, 11 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 | « media/tools/player_x11/player_x11.cc ('k') | media/video/capture/mac/video_capture_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/mac/video_capture_device_mac.h
diff --git a/media/video/capture/mac/video_capture_device_mac.h b/media/video/capture/mac/video_capture_device_mac.h
index 474e7e1bf450fdd30670794a248332fd7c8a4745..b672409b8c36b5f6307f181a30f8b3946e9496b5 100644
--- a/media/video/capture/mac/video_capture_device_mac.h
+++ b/media/video/capture/mac/video_capture_device_mac.h
@@ -14,12 +14,15 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "media/video/capture/video_capture_device.h"
#include "media/video/capture/video_capture_types.h"
@protocol PlatformVideoCapturingMac;
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace media {
// Called by VideoCaptureManager to open, close and start, stop video capture
@@ -66,7 +69,7 @@ class VideoCaptureDeviceMac : public VideoCaptureDevice {
bool tried_to_square_pixels_;
// Only read and write state_ from inside this loop.
- const scoped_refptr<base::MessageLoopProxy> loop_proxy_;
+ const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
InternalState state_;
// Used with Bind and PostTask to ensure that methods aren't called
« no previous file with comments | « media/tools/player_x11/player_x11.cc ('k') | media/video/capture/mac/video_capture_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698