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

Side by Side Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.h

Issue 1578973002: MediaRecorder: fire onError if the amount of tracks of the MediaStream varies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: peter@ comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaRecorder_h 5 #ifndef MediaRecorder_h
6 #define MediaRecorder_h 6 #define MediaRecorder_h
7 7
8 #include "core/dom/ActiveDOMObject.h" 8 #include "core/dom/ActiveDOMObject.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "modules/EventTargetModules.h" 10 #include "modules/EventTargetModules.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 private: 81 private:
82 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&, ExceptionState&); 82 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&, ExceptionState&);
83 83
84 void createBlobEvent(Blob*); 84 void createBlobEvent(Blob*);
85 85
86 void stopRecording(); 86 void stopRecording();
87 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); 87 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>);
88 void dispatchScheduledEvent(); 88 void dispatchScheduledEvent();
89 89
90 Member<MediaStream> m_stream; 90 Member<MediaStream> m_stream;
91 size_t m_streamAmountOfTracks;
91 String m_mimeType; 92 String m_mimeType;
92 bool m_stopped; 93 bool m_stopped;
93 bool m_ignoreMutedMedia; 94 bool m_ignoreMutedMedia;
94 95
95 State m_state; 96 State m_state;
96 97
97 OwnPtr<BlobData> m_blobData; 98 OwnPtr<BlobData> m_blobData;
98 99
99 OwnPtr<WebMediaRecorderHandler> m_recorderHandler; 100 OwnPtr<WebMediaRecorderHandler> m_recorderHandler;
100 101
101 AsyncMethodRunner<MediaRecorder> m_dispatchScheduledEventRunner; 102 AsyncMethodRunner<MediaRecorder> m_dispatchScheduledEventRunner;
102 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; 103 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents;
103 }; 104 };
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif // MediaRecorder_h 108 #endif // MediaRecorder_h
OLDNEW
« no previous file with comments | « content/test/data/media/mediarecorder_test.html ('k') | third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698