| 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 "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "core/dom/SuspendableObject.h" | 9 #include "core/dom/SuspendableObject.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const MediaRecorderOptions&, | 93 const MediaRecorderOptions&, |
| 94 ExceptionState&); | 94 ExceptionState&); |
| 95 | 95 |
| 96 void createBlobEvent(Blob*, double); | 96 void createBlobEvent(Blob*, double); |
| 97 | 97 |
| 98 void stopRecording(); | 98 void stopRecording(); |
| 99 void scheduleDispatchEvent(Event*); | 99 void scheduleDispatchEvent(Event*); |
| 100 void dispatchScheduledEvent(); | 100 void dispatchScheduledEvent(); |
| 101 | 101 |
| 102 Member<MediaStream> m_stream; | 102 Member<MediaStream> m_stream; |
| 103 size_t m_streamAmountOfTracks; | |
| 104 String m_mimeType; | 103 String m_mimeType; |
| 105 bool m_stopped; | 104 bool m_stopped; |
| 106 int m_audioBitsPerSecond; | 105 int m_audioBitsPerSecond; |
| 107 int m_videoBitsPerSecond; | 106 int m_videoBitsPerSecond; |
| 108 | 107 |
| 109 State m_state; | 108 State m_state; |
| 110 | 109 |
| 111 std::unique_ptr<BlobData> m_blobData; | 110 std::unique_ptr<BlobData> m_blobData; |
| 112 | 111 |
| 113 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; | 112 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; |
| 114 | 113 |
| 115 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; | 114 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; |
| 116 HeapVector<Member<Event>> m_scheduledEvents; | 115 HeapVector<Member<Event>> m_scheduledEvents; |
| 117 }; | 116 }; |
| 118 | 117 |
| 119 } // namespace blink | 118 } // namespace blink |
| 120 | 119 |
| 121 #endif // MediaRecorder_h | 120 #endif // MediaRecorder_h |
| OLD | NEW |