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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // |main_loop_| is being destroyed and we can stop posting repaint task | 232 // |main_loop_| is being destroyed and we can stop posting repaint task |
233 // to it. | 233 // to it. |
234 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; | 234 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; |
235 | 235 |
236 void Repaint(); | 236 void Repaint(); |
237 | 237 |
238 void OnPipelineInitialize(media::PipelineStatus status); | 238 void OnPipelineInitialize(media::PipelineStatus status); |
239 void OnPipelineSeek(media::PipelineStatus status); | 239 void OnPipelineSeek(media::PipelineStatus status); |
240 void OnPipelineEnded(media::PipelineStatus status); | 240 void OnPipelineEnded(media::PipelineStatus status); |
241 void OnPipelineError(media::PipelineStatus error); | 241 void OnPipelineError(media::PipelineStatus error); |
| 242 void OnPipelineDurationChanged(); |
242 void OnDemuxerOpened(); | 243 void OnDemuxerOpened(); |
243 void OnKeyAdded(const std::string& key_system, const std::string& session_id); | 244 void OnKeyAdded(const std::string& key_system, const std::string& session_id); |
244 void OnKeyError(const std::string& key_system, | 245 void OnKeyError(const std::string& key_system, |
245 const std::string& session_id, | 246 const std::string& session_id, |
246 media::Decryptor::KeyError error_code, | 247 media::Decryptor::KeyError error_code, |
247 int system_code); | 248 int system_code); |
248 void OnKeyMessage(const std::string& key_system, | 249 void OnKeyMessage(const std::string& key_system, |
249 const std::string& session_id, | 250 const std::string& session_id, |
250 scoped_array<uint8> message, | 251 scoped_array<uint8> message, |
251 int message_length, | 252 int message_length, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 | 357 |
357 // The decryptor that manages decryption keys and decrypts encrypted frames. | 358 // The decryptor that manages decryption keys and decrypts encrypted frames. |
358 ProxyDecryptor decryptor_; | 359 ProxyDecryptor decryptor_; |
359 | 360 |
360 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 361 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
361 }; | 362 }; |
362 | 363 |
363 } // namespace webkit_media | 364 } // namespace webkit_media |
364 | 365 |
365 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 366 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |