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

Unified Diff: content/browser/renderer_host/media/media_stream_manager.h

Issue 10990079: Clean up scoped_com_initializer.h. Remove #ifdefs for non-Windows (this is in base/win, no one sho… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/browser/renderer_host/media/media_stream_manager.h
===================================================================
--- content/browser/renderer_host/media/media_stream_manager.h (revision 158860)
+++ content/browser/renderer_host/media/media_stream_manager.h (working copy)
@@ -37,11 +37,13 @@
#include "content/common/content_export.h"
#include "content/public/browser/browser_thread.h"
+#if defined(OS_WIN)
namespace base {
namespace win {
class ScopedCOMInitializer;
}
}
+#endif
namespace media {
class AudioManager;
@@ -54,7 +56,8 @@
class MediaStreamRequester;
class VideoCaptureManager;
-// Thread that enters MTA on windows, and is base::Thread on linux and mac.
+// Thread that enters MTA on Windows.
+#if defined(OS_WIN)
class DeviceThread : public base::Thread {
public:
explicit DeviceThread(const char* name);
@@ -66,8 +69,12 @@
private:
scoped_ptr<base::win::ScopedCOMInitializer> com_initializer_;
+
DISALLOW_COPY_AND_ASSIGN(DeviceThread);
};
+#else
+typedef base::Thread DeviceThread;
+#endif
// MediaStreamManager is used to generate and close new media devices, not to
// start the media flow.
@@ -215,7 +222,7 @@
void StopMonitoring();
// Device thread shared by VideoCaptureManager and AudioInputDeviceManager.
- scoped_ptr<base::Thread> device_thread_;
+ scoped_ptr<DeviceThread> device_thread_;
scoped_ptr<MediaStreamDeviceSettings> device_settings_;

Powered by Google App Engine
This is Rietveld 408576698