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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // |main_loop_| is being destroyed and we can stop posting repaint task | 224 // |main_loop_| is being destroyed and we can stop posting repaint task |
225 // to it. | 225 // to it. |
226 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; | 226 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; |
227 | 227 |
228 void Repaint(); | 228 void Repaint(); |
229 | 229 |
230 void OnPipelineInitialize(media::PipelineStatus status); | 230 void OnPipelineInitialize(media::PipelineStatus status); |
231 void OnPipelineSeek(media::PipelineStatus status); | 231 void OnPipelineSeek(media::PipelineStatus status); |
232 void OnPipelineEnded(media::PipelineStatus status); | 232 void OnPipelineEnded(media::PipelineStatus status); |
233 void OnPipelineError(media::PipelineStatus error); | 233 void OnPipelineError(media::PipelineStatus error); |
| 234 void OnPipelineDurationChanged(); |
234 void OnDemuxerOpened(); | 235 void OnDemuxerOpened(); |
235 void OnKeyAdded(const std::string& key_system, const std::string& session_id); | 236 void OnKeyAdded(const std::string& key_system, const std::string& session_id); |
236 void OnKeyError(const std::string& key_system, | 237 void OnKeyError(const std::string& key_system, |
237 const std::string& session_id, | 238 const std::string& session_id, |
238 media::Decryptor::KeyError error_code, | 239 media::Decryptor::KeyError error_code, |
239 int system_code); | 240 int system_code); |
240 void OnKeyMessage(const std::string& key_system, | 241 void OnKeyMessage(const std::string& key_system, |
241 const std::string& session_id, | 242 const std::string& session_id, |
242 scoped_array<uint8> message, | 243 scoped_array<uint8> message, |
243 int message_length, | 244 int message_length, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 347 |
347 // The decryptor that manages decryption keys and decrypts encrypted frames. | 348 // The decryptor that manages decryption keys and decrypts encrypted frames. |
348 ProxyDecryptor decryptor_; | 349 ProxyDecryptor decryptor_; |
349 | 350 |
350 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 351 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
351 }; | 352 }; |
352 | 353 |
353 } // namespace webkit_media | 354 } // namespace webkit_media |
354 | 355 |
355 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 356 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |