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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // ActiveDOMObject interface | 104 // ActiveDOMObject interface |
105 void suspend() override; | 105 void suspend() override; |
106 void resume() override; | 106 void resume() override; |
107 void stop() override; | 107 void stop() override; |
108 | 108 |
109 // EventTarget interface | 109 // EventTarget interface |
110 ExecutionContext* getExecutionContext() const override; | 110 ExecutionContext* getExecutionContext() const override; |
111 const AtomicString& interfaceName() const override; | 111 const AtomicString& interfaceName() const override; |
112 | 112 |
113 // WebSourceBufferClient interface | 113 // WebSourceBufferClient interface |
114 std::vector<WebMediaPlayer::TrackId> initializationSegmentReceived(const std
::vector<MediaTrackInfo>&) override; | 114 WebVector<WebMediaPlayer::TrackId> initializationSegmentReceived(const WebVe
ctor<MediaTrackInfo>&) override; |
115 | 115 |
116 // Oilpan: eagerly release owned m_webSourceBuffer | 116 // Oilpan: eagerly release owned m_webSourceBuffer |
117 EAGERLY_FINALIZE(); | 117 EAGERLY_FINALIZE(); |
118 DECLARE_VIRTUAL_TRACE(); | 118 DECLARE_VIRTUAL_TRACE(); |
119 | 119 |
120 private: | 120 private: |
121 SourceBuffer(PassOwnPtr<WebSourceBuffer>, MediaSource*, GenericEventQueue*); | 121 SourceBuffer(PassOwnPtr<WebSourceBuffer>, MediaSource*, GenericEventQueue*); |
122 | 122 |
123 bool isRemoved() const; | 123 bool isRemoved() const; |
124 void scheduleEvent(const AtomicString& eventName); | 124 void scheduleEvent(const AtomicString& eventName); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 bool m_streamMaxSizeValid; | 167 bool m_streamMaxSizeValid; |
168 unsigned long long m_streamMaxSize; | 168 unsigned long long m_streamMaxSize; |
169 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 169 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
170 Member<Stream> m_stream; | 170 Member<Stream> m_stream; |
171 OwnPtr<FileReaderLoader> m_loader; | 171 OwnPtr<FileReaderLoader> m_loader; |
172 }; | 172 }; |
173 | 173 |
174 } // namespace blink | 174 } // namespace blink |
175 | 175 |
176 #endif // SourceBuffer_h | 176 #endif // SourceBuffer_h |
OLD | NEW |