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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // EventTarget | 69 // EventTarget |
70 const AtomicString& interfaceName() const override; | 70 const AtomicString& interfaceName() const override; |
71 ExecutionContext* getExecutionContext() const override; | 71 ExecutionContext* getExecutionContext() const override; |
72 | 72 |
73 // ActiveDOMObject | 73 // ActiveDOMObject |
74 void suspend() override; | 74 void suspend() override; |
75 void resume() override; | 75 void resume() override; |
76 void stop() override; | 76 void stop() override; |
77 | 77 |
78 // ActiveScriptWrappable | 78 // ScriptWrappable |
79 bool hasPendingActivity() const final { return !m_stopped; } | 79 bool hasPendingActivity() const final { return !m_stopped; } |
80 | 80 |
81 // WebMediaRecorderHandlerClient | 81 // WebMediaRecorderHandlerClient |
82 void writeData(const char* data, size_t length, bool lastInSlice) override; | 82 void writeData(const char* data, size_t length, bool lastInSlice) override; |
83 void onError(const WebString& message) override; | 83 void onError(const WebString& message) override; |
84 | 84 |
85 DECLARE_VIRTUAL_TRACE(); | 85 DECLARE_VIRTUAL_TRACE(); |
86 | 86 |
87 private: | 87 private: |
88 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&,
ExceptionState&); | 88 MediaRecorder(ExecutionContext*, MediaStream*, const MediaRecorderOptions&,
ExceptionState&); |
(...skipping 18 matching lines...) Expand all Loading... |
107 | 107 |
108 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; | 108 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; |
109 | 109 |
110 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; | 110 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; |
111 HeapVector<Member<Event>> m_scheduledEvents; | 111 HeapVector<Member<Event>> m_scheduledEvents; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
115 | 115 |
116 #endif // MediaRecorder_h | 116 #endif // MediaRecorder_h |
OLD | NEW |