OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
6 // It contains Pipeline which is the actual media player pipeline, it glues | 6 // It contains Pipeline which is the actual media player pipeline, it glues |
7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
8 // Pipeline would creates multiple threads and access some public methods | 8 // Pipeline would creates multiple threads and access some public methods |
9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
10 // methods and members. | 10 // methods and members. |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 virtual unsigned decodedFrameCount() const; | 174 virtual unsigned decodedFrameCount() const; |
175 virtual unsigned droppedFrameCount() const; | 175 virtual unsigned droppedFrameCount() const; |
176 virtual unsigned audioDecodedByteCount() const; | 176 virtual unsigned audioDecodedByteCount() const; |
177 virtual unsigned videoDecodedByteCount() const; | 177 virtual unsigned videoDecodedByteCount() const; |
178 | 178 |
179 virtual WebKit::WebVideoFrame* getCurrentFrame(); | 179 virtual WebKit::WebVideoFrame* getCurrentFrame(); |
180 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); | 180 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); |
181 | 181 |
182 virtual WebKit::WebAudioSourceProvider* audioSourceProvider(); | 182 virtual WebKit::WebAudioSourceProvider* audioSourceProvider(); |
183 | 183 |
| 184 virtual AddIdStatus sourceAddId(const WebKit::WebString& id, |
| 185 const WebKit::WebString& type); |
| 186 virtual bool sourceRemoveId(const WebKit::WebString& id); |
| 187 // TODO(acolwell): Remove non-id version when http://webk.it/83788 fix lands. |
184 virtual bool sourceAppend(const unsigned char* data, unsigned length); | 188 virtual bool sourceAppend(const unsigned char* data, unsigned length); |
| 189 virtual bool sourceAppend(const WebKit::WebString& id, |
| 190 const unsigned char* data, |
| 191 unsigned length); |
185 virtual void sourceEndOfStream(EndOfStreamStatus status); | 192 virtual void sourceEndOfStream(EndOfStreamStatus status); |
186 | 193 |
187 virtual MediaKeyException generateKeyRequest( | 194 virtual MediaKeyException generateKeyRequest( |
188 const WebKit::WebString& key_system, | 195 const WebKit::WebString& key_system, |
189 const unsigned char* init_data, | 196 const unsigned char* init_data, |
190 unsigned init_data_length); | 197 unsigned init_data_length); |
191 | 198 |
192 virtual MediaKeyException addKey(const WebKit::WebString& key_system, | 199 virtual MediaKeyException addKey(const WebKit::WebString& key_system, |
193 const unsigned char* key, | 200 const unsigned char* key, |
194 unsigned key_length, | 201 unsigned key_length, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 bool incremented_externally_allocated_memory_; | 314 bool incremented_externally_allocated_memory_; |
308 | 315 |
309 WebKit::WebAudioSourceProvider* audio_source_provider_; | 316 WebKit::WebAudioSourceProvider* audio_source_provider_; |
310 | 317 |
311 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 318 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
312 }; | 319 }; |
313 | 320 |
314 } // namespace webkit_media | 321 } // namespace webkit_media |
315 | 322 |
316 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 323 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |