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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void start(int timeSlice, ExceptionState&); | 59 void start(int timeSlice, ExceptionState&); |
60 void stop(ExceptionState&); | 60 void stop(ExceptionState&); |
61 void pause(ExceptionState&); | 61 void pause(ExceptionState&); |
62 void resume(ExceptionState&); | 62 void resume(ExceptionState&); |
63 void requestData(ExceptionState&); | 63 void requestData(ExceptionState&); |
64 | 64 |
65 static bool isTypeSupported(const String& type); | 65 static bool isTypeSupported(const String& type); |
66 | 66 |
67 // EventTarget | 67 // EventTarget |
68 const AtomicString& interfaceName() const override; | 68 const AtomicString& interfaceName() const override; |
69 ExecutionContext* executionContext() const override; | 69 ExecutionContext* getExecutionContext() const override; |
70 | 70 |
71 // ActiveDOMObject | 71 // ActiveDOMObject |
72 void suspend() override; | 72 void suspend() override; |
73 void resume() override; | 73 void resume() override; |
74 void stop() override; | 74 void stop() override; |
75 bool hasPendingActivity() const override { return !m_stopped; } | 75 bool hasPendingActivity() const override { return !m_stopped; } |
76 | 76 |
77 // WebMediaRecorderHandlerClient | 77 // WebMediaRecorderHandlerClient |
78 void writeData(const char* data, size_t length, bool lastInSlice) override; | 78 void writeData(const char* data, size_t length, bool lastInSlice) override; |
79 void onError(const WebString& message) override; | 79 void onError(const WebString& message) override; |
(...skipping 23 matching lines...) Expand all Loading... |
103 | 103 |
104 OwnPtr<WebMediaRecorderHandler> m_recorderHandler; | 104 OwnPtr<WebMediaRecorderHandler> m_recorderHandler; |
105 | 105 |
106 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; | 106 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; |
107 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; | 107 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 | 111 |
112 #endif // MediaRecorder_h | 112 #endif // MediaRecorder_h |
OLD | NEW |