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/ActiveDOMObject.h" | 9 #include "core/dom/ActiveDOMObject.h" |
10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 static bool isTypeSupported(const String& type); | 70 static bool isTypeSupported(const String& type); |
71 | 71 |
72 // EventTarget | 72 // EventTarget |
73 const AtomicString& interfaceName() const override; | 73 const AtomicString& interfaceName() const override; |
74 ExecutionContext* getExecutionContext() const override; | 74 ExecutionContext* getExecutionContext() const override; |
75 | 75 |
76 // ActiveDOMObject | 76 // ActiveDOMObject |
77 void suspend() override; | 77 void suspend() override; |
78 void resume() override; | 78 void resume() override; |
79 void stop() override; | 79 void contextDestroyed() override; |
80 | 80 |
81 // ScriptWrappable | 81 // ScriptWrappable |
82 bool hasPendingActivity() const final { return !m_stopped; } | 82 bool hasPendingActivity() const final { return !m_stopped; } |
83 | 83 |
84 // WebMediaRecorderHandlerClient | 84 // WebMediaRecorderHandlerClient |
85 void writeData(const char* data, size_t length, bool lastInSlice) override; | 85 void writeData(const char* data, size_t length, bool lastInSlice) override; |
86 void onError(const WebString& message) override; | 86 void onError(const WebString& message) override; |
87 | 87 |
88 DECLARE_VIRTUAL_TRACE(); | 88 DECLARE_VIRTUAL_TRACE(); |
89 | 89 |
(...skipping 23 matching lines...) Expand all Loading... |
113 | 113 |
114 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; | 114 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; |
115 | 115 |
116 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; | 116 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; |
117 HeapVector<Member<Event>> m_scheduledEvents; | 117 HeapVector<Member<Event>> m_scheduledEvents; |
118 }; | 118 }; |
119 | 119 |
120 } // namespace blink | 120 } // namespace blink |
121 | 121 |
122 #endif // MediaRecorder_h | 122 #endif // MediaRecorder_h |
OLD | NEW |