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> | |
35 #include "bindings/core/v8/ActiveScriptWrappable.h" | 34 #include "bindings/core/v8/ActiveScriptWrappable.h" |
36 #include "core/dom/NotShared.h" | |
37 #include "core/dom/SuspendableObject.h" | 35 #include "core/dom/SuspendableObject.h" |
38 #include "modules/EventTargetModules.h" | 36 #include "modules/EventTargetModules.h" |
39 #include "modules/mediasource/TrackDefaultList.h" | 37 #include "modules/mediasource/TrackDefaultList.h" |
40 #include "platform/AsyncMethodRunner.h" | 38 #include "platform/AsyncMethodRunner.h" |
41 #include "platform/weborigin/KURL.h" | 39 #include "platform/weborigin/KURL.h" |
42 #include "public/platform/WebSourceBufferClient.h" | 40 #include "public/platform/WebSourceBufferClient.h" |
43 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 42 #include <memory> |
44 | 43 |
45 namespace blink { | 44 namespace blink { |
46 | 45 |
47 class AudioTrackList; | 46 class AudioTrackList; |
48 class DOMArrayBuffer; | 47 class DOMArrayBuffer; |
49 class DOMArrayBufferView; | 48 class DOMArrayBufferView; |
50 class ExceptionState; | 49 class ExceptionState; |
51 class GenericEventQueue; | 50 class GenericEventQueue; |
52 class MediaSource; | 51 class MediaSource; |
53 class TimeRanges; | 52 class TimeRanges; |
(...skipping 18 matching lines...) Expand all Loading... |
72 ~SourceBuffer() override; | 71 ~SourceBuffer() override; |
73 | 72 |
74 // SourceBuffer.idl methods | 73 // SourceBuffer.idl methods |
75 const AtomicString& mode() const { return mode_; } | 74 const AtomicString& mode() const { return mode_; } |
76 void setMode(const AtomicString&, ExceptionState&); | 75 void setMode(const AtomicString&, ExceptionState&); |
77 bool updating() const { return updating_; } | 76 bool updating() const { return updating_; } |
78 TimeRanges* buffered(ExceptionState&) const; | 77 TimeRanges* buffered(ExceptionState&) const; |
79 double timestampOffset() const; | 78 double timestampOffset() const; |
80 void setTimestampOffset(double, ExceptionState&); | 79 void setTimestampOffset(double, ExceptionState&); |
81 void appendBuffer(DOMArrayBuffer* data, ExceptionState&); | 80 void appendBuffer(DOMArrayBuffer* data, ExceptionState&); |
82 void appendBuffer(NotShared<DOMArrayBufferView> data, ExceptionState&); | 81 void appendBuffer(DOMArrayBufferView* data, ExceptionState&); |
83 void abort(ExceptionState&); | 82 void abort(ExceptionState&); |
84 void remove(double start, double end, ExceptionState&); | 83 void remove(double start, double end, ExceptionState&); |
85 double appendWindowStart() const; | 84 double appendWindowStart() const; |
86 void setAppendWindowStart(double, ExceptionState&); | 85 void setAppendWindowStart(double, ExceptionState&); |
87 double appendWindowEnd() const; | 86 double appendWindowEnd() const; |
88 void setAppendWindowEnd(double, ExceptionState&); | 87 void setAppendWindowEnd(double, ExceptionState&); |
89 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatestart); | 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatestart); |
90 DEFINE_ATTRIBUTE_EVENT_LISTENER(update); | 89 DEFINE_ATTRIBUTE_EVENT_LISTENER(update); |
91 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateend); | 90 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateend); |
92 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 Member<AsyncMethodRunner<SourceBuffer>> append_buffer_async_part_runner_; | 167 Member<AsyncMethodRunner<SourceBuffer>> append_buffer_async_part_runner_; |
169 | 168 |
170 double pending_remove_start_; | 169 double pending_remove_start_; |
171 double pending_remove_end_; | 170 double pending_remove_end_; |
172 Member<AsyncMethodRunner<SourceBuffer>> remove_async_part_runner_; | 171 Member<AsyncMethodRunner<SourceBuffer>> remove_async_part_runner_; |
173 }; | 172 }; |
174 | 173 |
175 } // namespace blink | 174 } // namespace blink |
176 | 175 |
177 #endif // SourceBuffer_h | 176 #endif // SourceBuffer_h |
OLD | NEW |