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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener
icEventQueue*); | 65 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener
icEventQueue*); |
66 static const AtomicString& segmentsKeyword(); | 66 static const AtomicString& segmentsKeyword(); |
67 static const AtomicString& sequenceKeyword(); | 67 static const AtomicString& sequenceKeyword(); |
68 | 68 |
69 ~SourceBuffer() override; | 69 ~SourceBuffer() override; |
70 | 70 |
71 // SourceBuffer.idl methods | 71 // SourceBuffer.idl methods |
72 const AtomicString& mode() const { return m_mode; } | 72 const AtomicString& mode() const { return m_mode; } |
73 void setMode(const AtomicString&, ExceptionState&); | 73 void setMode(const AtomicString&, ExceptionState&); |
74 bool updating() const { return m_updating; } | 74 bool updating() const { return m_updating; } |
75 PassRefPtrWillBeRawPtr<TimeRanges> buffered(ExceptionState&) const; | 75 TimeRanges* buffered(ExceptionState&) const; |
76 double timestampOffset() const; | 76 double timestampOffset() const; |
77 void setTimestampOffset(double, ExceptionState&); | 77 void setTimestampOffset(double, ExceptionState&); |
78 void appendBuffer(PassRefPtr<DOMArrayBuffer> data, ExceptionState&); | 78 void appendBuffer(PassRefPtr<DOMArrayBuffer> data, ExceptionState&); |
79 void appendBuffer(PassRefPtr<DOMArrayBufferView> data, ExceptionState&); | 79 void appendBuffer(PassRefPtr<DOMArrayBufferView> data, ExceptionState&); |
80 void appendStream(Stream*, ExceptionState&); | 80 void appendStream(Stream*, ExceptionState&); |
81 void appendStream(Stream*, unsigned long long maxSize, ExceptionState&); | 81 void appendStream(Stream*, unsigned long long maxSize, ExceptionState&); |
82 void abort(ExceptionState&); | 82 void abort(ExceptionState&); |
83 void remove(double start, double end, ExceptionState&); | 83 void remove(double start, double end, ExceptionState&); |
84 double appendWindowStart() const; | 84 double appendWindowStart() const; |
85 void setAppendWindowStart(double, ExceptionState&); | 85 void setAppendWindowStart(double, ExceptionState&); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 bool m_streamMaxSizeValid; | 153 bool m_streamMaxSizeValid; |
154 unsigned long long m_streamMaxSize; | 154 unsigned long long m_streamMaxSize; |
155 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; | 155 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; |
156 Member<Stream> m_stream; | 156 Member<Stream> m_stream; |
157 OwnPtr<FileReaderLoader> m_loader; | 157 OwnPtr<FileReaderLoader> m_loader; |
158 }; | 158 }; |
159 | 159 |
160 } // namespace blink | 160 } // namespace blink |
161 | 161 |
162 #endif // SourceBuffer_h | 162 #endif // SourceBuffer_h |
OLD | NEW |