| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual ExecutionContext* executionContext() const OVERRIDE; | 97 virtual ExecutionContext* executionContext() const OVERRIDE; |
| 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 void updateTimestampOffsetIfNecessary(); |
| 107 | 108 |
| 108 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); | 109 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); |
| 109 void appendBufferAsyncPart(); | 110 void appendBufferAsyncPart(); |
| 110 | 111 |
| 111 void removeAsyncPart(); | 112 void removeAsyncPart(); |
| 112 | 113 |
| 113 void appendStreamInternal(PassRefPtr<Stream>, ExceptionState&); | 114 void appendStreamInternal(PassRefPtr<Stream>, ExceptionState&); |
| 114 void appendStreamAsyncPart(); | 115 void appendStreamAsyncPart(); |
| 115 void appendStreamDone(bool success); | 116 void appendStreamDone(bool success); |
| 116 void clearAppendStreamState(); | 117 void clearAppendStreamState(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 141 bool m_streamMaxSizeValid; | 142 bool m_streamMaxSizeValid; |
| 142 unsigned long long m_streamMaxSize; | 143 unsigned long long m_streamMaxSize; |
| 143 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; | 144 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; |
| 144 RefPtr<Stream> m_stream; | 145 RefPtr<Stream> m_stream; |
| 145 OwnPtr<FileReaderLoader> m_loader; | 146 OwnPtr<FileReaderLoader> m_loader; |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace WebCore | 149 } // namespace WebCore |
| 149 | 150 |
| 150 #endif | 151 #endif |
| OLD | NEW |