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

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

Issue 14346002: Connect webrtc MediaSourceInterface ready states with webkit WebMediaStreamSource (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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/mock_media_stream_dependency_factory.h
diff --git a/content/renderer/media/mock_media_stream_dependency_factory.h b/content/renderer/media/mock_media_stream_dependency_factory.h
index 9809fabd5bd1bbe16efa0438960e83ded9462212..57ef411bbd5df20107c187dda2e9883fdef58e80 100644
--- a/content/renderer/media/mock_media_stream_dependency_factory.h
+++ b/content/renderer/media/mock_media_stream_dependency_factory.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
#define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
+#include <list>
#include <string>
#include <vector>
@@ -33,10 +34,11 @@ class MockVideoSource : public webrtc::VideoSourceInterface {
protected:
virtual ~MockVideoSource();
+ void FireOnChanged();
private:
- webrtc::ObserverInterface* observer_;
- MediaSourceInterface::SourceState state_;
+ std::list<webrtc::ObserverInterface*> observers_;
+ MediaSourceInterface::SourceState state_;
};
class MockAudioSource : public webrtc::AudioSourceInterface {

Powered by Google App Engine
This is Rietveld 408576698