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

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h

Issue 1570263002: MediaRecorder: make EventListener and stop if receiving on{add,remove}track from WebMediaStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h
diff --git a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h
index bc2ab17b869b6bf9d6679166c149367e8e2f0b78..742a1fb76c710a78deee82c396066743cba9f243 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h
+++ b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h
@@ -79,6 +79,8 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
+ class TrackEventListener;
+
MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&, ExceptionState&);
void createBlobEvent(Blob*);
@@ -97,6 +99,7 @@ private:
OwnPtr<BlobData> m_blobData;
OwnPtr<WebMediaRecorderHandler> m_recorderHandler;
+ RefPtrWillBePersistent<EventListener> m_addOrRemoveTrackListener;
AsyncMethodRunner<MediaRecorder> m_dispatchScheduledEventRunner;
WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents;

Powered by Google App Engine
This is Rietveld 408576698