| 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 28 matching lines...) Expand all Loading... |
| 39 #include "wtf/PassRefPtr.h" | 39 #include "wtf/PassRefPtr.h" |
| 40 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.h" |
| 41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 class GenericEventQueue; | 44 class GenericEventQueue; |
| 45 class MediaSource; | 45 class MediaSource; |
| 46 class SourceBufferPrivate; | 46 class SourceBufferPrivate; |
| 47 class TimeRanges; | 47 class TimeRanges; |
| 48 | 48 |
| 49 class SourceBuffer : public RefCounted<SourceBuffer>, public ActiveDOMObject, pu
blic EventTarget, public ScriptWrappable { | 49 class SourceBuffer : public EventTarget, public RefCounted<SourceBuffer>, public
ActiveDOMObject, public ScriptWrappable { |
| 50 public: | 50 public: |
| 51 static PassRefPtr<SourceBuffer> create(PassOwnPtr<SourceBufferPrivate>, Medi
aSource*, GenericEventQueue*); | 51 static PassRefPtr<SourceBuffer> create(PassOwnPtr<SourceBufferPrivate>, Medi
aSource*, GenericEventQueue*); |
| 52 | 52 |
| 53 virtual ~SourceBuffer(); | 53 virtual ~SourceBuffer(); |
| 54 | 54 |
| 55 // SourceBuffer.idl methods | 55 // SourceBuffer.idl methods |
| 56 bool updating() const { return m_updating; } | 56 bool updating() const { return m_updating; } |
| 57 PassRefPtr<TimeRanges> buffered(ExceptionCode&) const; | 57 PassRefPtr<TimeRanges> buffered(ExceptionCode&) const; |
| 58 double timestampOffset() const; | 58 double timestampOffset() const; |
| 59 void setTimestampOffset(double, ExceptionCode&); | 59 void setTimestampOffset(double, ExceptionCode&); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 bool m_updating; | 99 bool m_updating; |
| 100 double m_timestampOffset; | 100 double m_timestampOffset; |
| 101 | 101 |
| 102 Vector<unsigned char> m_pendingAppendData; | 102 Vector<unsigned char> m_pendingAppendData; |
| 103 Timer<SourceBuffer> m_appendBufferTimer; | 103 Timer<SourceBuffer> m_appendBufferTimer; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace WebCore | 106 } // namespace WebCore |
| 107 | 107 |
| 108 #endif | 108 #endif |
| OLD | NEW |