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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // SourceBuffer.idl methods | 70 // SourceBuffer.idl methods |
71 const AtomicString& mode() const { return m_mode; } | 71 const AtomicString& mode() const { return m_mode; } |
72 void setMode(const AtomicString&, ExceptionState&); | 72 void setMode(const AtomicString&, ExceptionState&); |
73 bool updating() const { return m_updating; } | 73 bool updating() const { return m_updating; } |
74 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; | 74 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; |
75 double timestampOffset() const; | 75 double timestampOffset() const; |
76 void setTimestampOffset(double, ExceptionState&); | 76 void setTimestampOffset(double, ExceptionState&); |
77 void appendBuffer(PassRefPtr<ArrayBuffer> data, ExceptionState&); | 77 void appendBuffer(PassRefPtr<ArrayBuffer> data, ExceptionState&); |
78 void appendBuffer(PassRefPtr<ArrayBufferView> data, ExceptionState&); | 78 void appendBuffer(PassRefPtr<ArrayBufferView> data, ExceptionState&); |
79 void appendStream(PassRefPtr<Stream>, ExceptionState&); | 79 void appendStream(PassRefPtrWillBeRawPtr<Stream>, ExceptionState&); |
80 void appendStream(PassRefPtr<Stream>, unsigned long long maxSize, ExceptionS
tate&); | 80 void appendStream(PassRefPtrWillBeRawPtr<Stream>, unsigned long long maxSize
, ExceptionState&); |
81 void abort(ExceptionState&); | 81 void abort(ExceptionState&); |
82 void remove(double start, double end, ExceptionState&); | 82 void remove(double start, double end, ExceptionState&); |
83 double appendWindowStart() const; | 83 double appendWindowStart() const; |
84 void setAppendWindowStart(double, ExceptionState&); | 84 void setAppendWindowStart(double, ExceptionState&); |
85 double appendWindowEnd() const; | 85 double appendWindowEnd() const; |
86 void setAppendWindowEnd(double, ExceptionState&); | 86 void setAppendWindowEnd(double, ExceptionState&); |
87 | 87 |
88 void abortIfUpdating(); | 88 void abortIfUpdating(); |
89 void removedFromMediaSource(); | 89 void removedFromMediaSource(); |
90 | 90 |
(...skipping 13 matching lines...) Expand all Loading... |
104 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ
ueue*); | 104 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ
ueue*); |
105 | 105 |
106 bool isRemoved() const; | 106 bool isRemoved() const; |
107 void scheduleEvent(const AtomicString& eventName); | 107 void scheduleEvent(const AtomicString& eventName); |
108 | 108 |
109 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); | 109 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); |
110 void appendBufferAsyncPart(); | 110 void appendBufferAsyncPart(); |
111 | 111 |
112 void removeAsyncPart(); | 112 void removeAsyncPart(); |
113 | 113 |
114 void appendStreamInternal(PassRefPtr<Stream>, ExceptionState&); | 114 void appendStreamInternal(PassRefPtrWillBeRawPtr<Stream>, ExceptionState&); |
115 void appendStreamAsyncPart(); | 115 void appendStreamAsyncPart(); |
116 void appendStreamDone(bool success); | 116 void appendStreamDone(bool success); |
117 void clearAppendStreamState(); | 117 void clearAppendStreamState(); |
118 | 118 |
119 // FileReaderLoaderClient interface | 119 // FileReaderLoaderClient interface |
120 virtual void didStartLoading() OVERRIDE; | 120 virtual void didStartLoading() OVERRIDE; |
121 virtual void didReceiveDataForClient(const char* data, unsigned dataLength)
OVERRIDE; | 121 virtual void didReceiveDataForClient(const char* data, unsigned dataLength)
OVERRIDE; |
122 virtual void didFinishLoading() OVERRIDE; | 122 virtual void didFinishLoading() OVERRIDE; |
123 virtual void didFail(FileError::ErrorCode) OVERRIDE; | 123 virtual void didFail(FileError::ErrorCode) OVERRIDE; |
124 | 124 |
(...skipping 10 matching lines...) Expand all Loading... |
135 Vector<unsigned char> m_pendingAppendData; | 135 Vector<unsigned char> m_pendingAppendData; |
136 AsyncMethodRunner<SourceBuffer> m_appendBufferAsyncPartRunner; | 136 AsyncMethodRunner<SourceBuffer> m_appendBufferAsyncPartRunner; |
137 | 137 |
138 double m_pendingRemoveStart; | 138 double m_pendingRemoveStart; |
139 double m_pendingRemoveEnd; | 139 double m_pendingRemoveEnd; |
140 AsyncMethodRunner<SourceBuffer> m_removeAsyncPartRunner; | 140 AsyncMethodRunner<SourceBuffer> m_removeAsyncPartRunner; |
141 | 141 |
142 bool m_streamMaxSizeValid; | 142 bool m_streamMaxSizeValid; |
143 unsigned long long m_streamMaxSize; | 143 unsigned long long m_streamMaxSize; |
144 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; | 144 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; |
145 RefPtr<Stream> m_stream; | 145 RefPtrWillBeMember<Stream> m_stream; |
146 OwnPtr<FileReaderLoader> m_loader; | 146 OwnPtr<FileReaderLoader> m_loader; |
147 }; | 147 }; |
148 | 148 |
149 } // namespace WebCore | 149 } // namespace WebCore |
150 | 150 |
151 #endif | 151 #endif |
OLD | NEW |