| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |