OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef SourceBuffer_h | 31 #ifndef SourceBuffer_h |
32 #define SourceBuffer_h | 32 #define SourceBuffer_h |
33 | 33 |
| 34 #include <memory> |
34 #include "bindings/core/v8/ActiveScriptWrappable.h" | 35 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 36 #include "core/dom/NotShared.h" |
35 #include "core/dom/SuspendableObject.h" | 37 #include "core/dom/SuspendableObject.h" |
36 #include "modules/EventTargetModules.h" | 38 #include "modules/EventTargetModules.h" |
37 #include "modules/mediasource/TrackDefaultList.h" | 39 #include "modules/mediasource/TrackDefaultList.h" |
38 #include "platform/AsyncMethodRunner.h" | 40 #include "platform/AsyncMethodRunner.h" |
39 #include "platform/weborigin/KURL.h" | 41 #include "platform/weborigin/KURL.h" |
40 #include "public/platform/WebSourceBufferClient.h" | 42 #include "public/platform/WebSourceBufferClient.h" |
41 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
42 #include <memory> | |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
45 | 46 |
46 class AudioTrackList; | 47 class AudioTrackList; |
47 class DOMArrayBuffer; | 48 class DOMArrayBuffer; |
48 class DOMArrayBufferView; | 49 class DOMArrayBufferView; |
49 class ExceptionState; | 50 class ExceptionState; |
50 class GenericEventQueue; | 51 class GenericEventQueue; |
51 class MediaSource; | 52 class MediaSource; |
52 class TimeRanges; | 53 class TimeRanges; |
(...skipping 18 matching lines...) Expand all Loading... |
71 ~SourceBuffer() override; | 72 ~SourceBuffer() override; |
72 | 73 |
73 // SourceBuffer.idl methods | 74 // SourceBuffer.idl methods |
74 const AtomicString& mode() const { return mode_; } | 75 const AtomicString& mode() const { return mode_; } |
75 void setMode(const AtomicString&, ExceptionState&); | 76 void setMode(const AtomicString&, ExceptionState&); |
76 bool updating() const { return updating_; } | 77 bool updating() const { return updating_; } |
77 TimeRanges* buffered(ExceptionState&) const; | 78 TimeRanges* buffered(ExceptionState&) const; |
78 double timestampOffset() const; | 79 double timestampOffset() const; |
79 void setTimestampOffset(double, ExceptionState&); | 80 void setTimestampOffset(double, ExceptionState&); |
80 void appendBuffer(DOMArrayBuffer* data, ExceptionState&); | 81 void appendBuffer(DOMArrayBuffer* data, ExceptionState&); |
81 void appendBuffer(DOMArrayBufferView* data, ExceptionState&); | 82 void appendBuffer(NotShared<DOMArrayBufferView> data, ExceptionState&); |
82 void abort(ExceptionState&); | 83 void abort(ExceptionState&); |
83 void remove(double start, double end, ExceptionState&); | 84 void remove(double start, double end, ExceptionState&); |
84 double appendWindowStart() const; | 85 double appendWindowStart() const; |
85 void setAppendWindowStart(double, ExceptionState&); | 86 void setAppendWindowStart(double, ExceptionState&); |
86 double appendWindowEnd() const; | 87 double appendWindowEnd() const; |
87 void setAppendWindowEnd(double, ExceptionState&); | 88 void setAppendWindowEnd(double, ExceptionState&); |
88 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatestart); | 89 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatestart); |
89 DEFINE_ATTRIBUTE_EVENT_LISTENER(update); | 90 DEFINE_ATTRIBUTE_EVENT_LISTENER(update); |
90 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateend); | 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateend); |
91 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 Member<AsyncMethodRunner<SourceBuffer>> append_buffer_async_part_runner_; | 168 Member<AsyncMethodRunner<SourceBuffer>> append_buffer_async_part_runner_; |
168 | 169 |
169 double pending_remove_start_; | 170 double pending_remove_start_; |
170 double pending_remove_end_; | 171 double pending_remove_end_; |
171 Member<AsyncMethodRunner<SourceBuffer>> remove_async_part_runner_; | 172 Member<AsyncMethodRunner<SourceBuffer>> remove_async_part_runner_; |
172 }; | 173 }; |
173 | 174 |
174 } // namespace blink | 175 } // namespace blink |
175 | 176 |
176 #endif // SourceBuffer_h | 177 #endif // SourceBuffer_h |
OLD | NEW |