| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 virtual const AtomicString& interfaceName() const OVERRIDE; | 98 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 99 | 99 |
| 100 void trace(Visitor*); | 100 void trace(Visitor*); |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ
ueue*); | 103 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ
ueue*); |
| 104 | 104 |
| 105 bool isRemoved() const; | 105 bool isRemoved() const; |
| 106 void scheduleEvent(const AtomicString& eventName); | 106 void scheduleEvent(const AtomicString& eventName); |
| 107 | 107 |
| 108 // Coded frame processing during append may update timestamp offset. This he
lper |
| 109 // does the append, then remembers the new offset only if it was updated by
the append. |
| 110 void appendAndUpdateTimestampOffset(const unsigned char* data, unsigned leng
th); |
| 111 |
| 108 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); | 112 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); |
| 109 void appendBufferAsyncPart(); | 113 void appendBufferAsyncPart(); |
| 110 | 114 |
| 111 void removeAsyncPart(); | 115 void removeAsyncPart(); |
| 112 | 116 |
| 113 void appendStreamInternal(PassRefPtr<Stream>, ExceptionState&); | 117 void appendStreamInternal(PassRefPtr<Stream>, ExceptionState&); |
| 114 void appendStreamAsyncPart(); | 118 void appendStreamAsyncPart(); |
| 115 void appendStreamDone(bool success); | 119 void appendStreamDone(bool success); |
| 116 void clearAppendStreamState(); | 120 void clearAppendStreamState(); |
| 117 | 121 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 141 bool m_streamMaxSizeValid; | 145 bool m_streamMaxSizeValid; |
| 142 unsigned long long m_streamMaxSize; | 146 unsigned long long m_streamMaxSize; |
| 143 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; | 147 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; |
| 144 RefPtr<Stream> m_stream; | 148 RefPtr<Stream> m_stream; |
| 145 OwnPtr<FileReaderLoader> m_loader; | 149 OwnPtr<FileReaderLoader> m_loader; |
| 146 }; | 150 }; |
| 147 | 151 |
| 148 } // namespace WebCore | 152 } // namespace WebCore |
| 149 | 153 |
| 150 #endif | 154 #endif |
| OLD | NEW |