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

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

Issue 10692113: Wire up GetUserMedia in Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
diff --git a/content/browser/renderer_host/media/media_stream_manager.h b/content/browser/renderer_host/media/media_stream_manager.h
index 3082ac0f76fd6ec5434b6a81657bcb4ba6849261..69d22b70171c434d107aa34b4a8b5225652e8b4c 100644
--- a/content/browser/renderer_host/media/media_stream_manager.h
+++ b/content/browser/renderer_host/media/media_stream_manager.h
@@ -30,15 +30,12 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/threading/thread.h"
-#include "base/win/scoped_com_initializer.h"
#include "content/browser/renderer_host/media/media_stream_provider.h"
#include "content/browser/renderer_host/media/media_stream_settings_requester.h"
#include "content/common/media/media_stream_options.h"
#include "content/common/content_export.h"
#include "content/public/browser/browser_thread.h"
-using base::win::ScopedCOMInitializer;
-
namespace media_stream {
class AudioInputDeviceManager;
@@ -49,12 +46,14 @@ class VideoCaptureManager;
// Thread that enters MTA on windows, and is base::Thread on linux and mac.
class DeviceThread : public base::Thread {
public:
- explicit DeviceThread(const char* name)
- : base::Thread(name),
- com_init_(ScopedCOMInitializer::kMTA) {}
+ explicit DeviceThread(const char* name);
+
+ protected:
+ virtual void Init() OVERRIDE;
+ virtual void CleanUp() OVERRIDE;
private:
- ScopedCOMInitializer com_init_;
+ bool com_initialized_;
tommi (sloooow) - chröme 2012/07/06 22:17:09 yikes, I see what you mean... should have been cau
grt (UTC plus 2) 2012/07/06 23:07:25 awesome idea. done.
DISALLOW_COPY_AND_ASSIGN(DeviceThread);
};

Powered by Google App Engine
This is Rietveld 408576698