| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 static bool isTypeSupported(const String& type); | 67 static bool isTypeSupported(const String& type); |
| 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 // SuspendableObject | 73 // SuspendableObject |
| 74 void suspend() override; | 74 void suspend() override; |
| 75 void resume() override; | 75 void resume() override; |
| 76 void contextDestroyed() override; | 76 void contextDestroyed(ExecutionContext*) override; |
| 77 | 77 |
| 78 // ScriptWrappable | 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, | 82 void writeData(const char* data, |
| 83 size_t length, | 83 size_t length, |
| 84 bool lastInSlice, | 84 bool lastInSlice, |
| 85 double timecode) override; | 85 double timecode) override; |
| 86 void onError(const WebString& message) override; | 86 void onError(const WebString& message) override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 112 | 112 |
| 113 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; | 113 std::unique_ptr<WebMediaRecorderHandler> m_recorderHandler; |
| 114 | 114 |
| 115 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; | 115 Member<AsyncMethodRunner<MediaRecorder>> m_dispatchScheduledEventRunner; |
| 116 HeapVector<Member<Event>> m_scheduledEvents; | 116 HeapVector<Member<Event>> m_scheduledEvents; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // MediaRecorder_h | 121 #endif // MediaRecorder_h |
| OLD | NEW |