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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 namespace WebCore { | 51 namespace WebCore { |
52 | 52 |
53 class ExceptionState; | 53 class ExceptionState; |
54 class FileReaderLoader; | 54 class FileReaderLoader; |
55 class GenericEventQueue; | 55 class GenericEventQueue; |
56 class MediaSource; | 56 class MediaSource; |
57 class Stream; | 57 class Stream; |
58 class TimeRanges; | 58 class TimeRanges; |
59 | 59 |
60 class SourceBuffer FINAL : public RefCountedWillBeRefCountedGarbageCollected<Sou
rceBuffer>, public ActiveDOMObject, public EventTargetWithInlineData, public Scr
iptWrappable, public FileReaderLoaderClient { | 60 class SourceBuffer FINAL : public RefCountedWillBeRefCountedGarbageCollected<Sou
rceBuffer>, public ActiveDOMObject, public EventTargetWithInlineData, public Scr
iptWrappable, public FileReaderLoaderClient { |
61 DECLARE_GC_INFO; | |
62 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<S
ourceBuffer>); | 61 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<S
ourceBuffer>); |
63 public: | 62 public: |
64 static PassRefPtrWillBeRawPtr<SourceBuffer> create(PassOwnPtr<blink::WebSour
ceBuffer>, MediaSource*, GenericEventQueue*); | 63 static PassRefPtrWillBeRawPtr<SourceBuffer> create(PassOwnPtr<blink::WebSour
ceBuffer>, MediaSource*, GenericEventQueue*); |
65 static const AtomicString& segmentsKeyword(); | 64 static const AtomicString& segmentsKeyword(); |
66 static const AtomicString& sequenceKeyword(); | 65 static const AtomicString& sequenceKeyword(); |
67 | 66 |
68 virtual ~SourceBuffer(); | 67 virtual ~SourceBuffer(); |
69 | 68 |
70 // SourceBuffer.idl methods | 69 // SourceBuffer.idl methods |
71 const AtomicString& mode() const { return m_mode; } | 70 const AtomicString& mode() const { return m_mode; } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 bool m_streamMaxSizeValid; | 141 bool m_streamMaxSizeValid; |
143 unsigned long long m_streamMaxSize; | 142 unsigned long long m_streamMaxSize; |
144 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; | 143 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; |
145 RefPtr<Stream> m_stream; | 144 RefPtr<Stream> m_stream; |
146 OwnPtr<FileReaderLoader> m_loader; | 145 OwnPtr<FileReaderLoader> m_loader; |
147 }; | 146 }; |
148 | 147 |
149 } // namespace WebCore | 148 } // namespace WebCore |
150 | 149 |
151 #endif | 150 #endif |
OLD | NEW |