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/V8GCRoot.h" |
8 #include "core/dom/ActiveDOMObject.h" | 9 #include "core/dom/ActiveDOMObject.h" |
9 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
10 #include "modules/EventTargetModules.h" | 11 #include "modules/EventTargetModules.h" |
11 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
12 #include "modules/mediarecorder/MediaRecorderOptions.h" | 13 #include "modules/mediarecorder/MediaRecorderOptions.h" |
13 #include "modules/mediastream/MediaStream.h" | 14 #include "modules/mediastream/MediaStream.h" |
14 #include "platform/AsyncMethodRunner.h" | 15 #include "platform/AsyncMethodRunner.h" |
15 #include "public/platform/WebMediaRecorderHandler.h" | 16 #include "public/platform/WebMediaRecorderHandler.h" |
16 #include "public/platform/WebMediaRecorderHandlerClient.h" | 17 #include "public/platform/WebMediaRecorderHandlerClient.h" |
17 | 18 |
18 namespace blink { | 19 namespace blink { |
19 | 20 |
20 class Blob; | 21 class Blob; |
21 class BlobData; | 22 class BlobData; |
22 class ExceptionState; | 23 class ExceptionState; |
23 | 24 |
24 class MODULES_EXPORT MediaRecorder final | 25 class MODULES_EXPORT MediaRecorder final |
25 : public RefCountedGarbageCollectedEventTargetWithInlineData<MediaRecorder> | 26 : public RefCountedGarbageCollectedEventTargetWithInlineData<MediaRecorder> |
26 , public WebMediaRecorderHandlerClient | 27 , public WebMediaRecorderHandlerClient |
27 , public ActiveDOMObject { | 28 , public ActiveDOMObject |
| 29 , public V8GCRoot { |
28 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MediaRecorder); | 30 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MediaRecorder); |
29 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaRecorder); | 31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaRecorder); |
30 DEFINE_WRAPPERTYPEINFO(); | 32 DEFINE_WRAPPERTYPEINFO(); |
31 public: | 33 public: |
32 enum class State { | 34 enum class State { |
33 Inactive = 0, | 35 Inactive = 0, |
34 Recording, | 36 Recording, |
35 Paused | 37 Paused |
36 }; | 38 }; |
37 | 39 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 105 |
104 OwnPtr<WebMediaRecorderHandler> m_recorderHandler; | 106 OwnPtr<WebMediaRecorderHandler> m_recorderHandler; |
105 | 107 |
106 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; | 108 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; |
107 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; | 109 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; |
108 }; | 110 }; |
109 | 111 |
110 } // namespace blink | 112 } // namespace blink |
111 | 113 |
112 #endif // MediaRecorder_h | 114 #endif // MediaRecorder_h |
OLD | NEW |