| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 void OnKeyError(const std::string& key_system, | 238 void OnKeyError(const std::string& key_system, |
| 239 const std::string& session_id, | 239 const std::string& session_id, |
| 240 media::Decryptor::KeyError error_code, | 240 media::Decryptor::KeyError error_code, |
| 241 int system_code); | 241 int system_code); |
| 242 void OnKeyMessage(const std::string& key_system, | 242 void OnKeyMessage(const std::string& key_system, |
| 243 const std::string& session_id, | 243 const std::string& session_id, |
| 244 scoped_array<uint8> message, | 244 scoped_array<uint8> message, |
| 245 int message_length, | 245 int message_length, |
| 246 const std::string& default_url); | 246 const std::string& default_url); |
| 247 void OnNeedKey(const std::string& key_system, | 247 void OnNeedKey(const std::string& key_system, |
| 248 const std::string& type, |
| 248 const std::string& session_id, | 249 const std::string& session_id, |
| 249 scoped_array<uint8> init_data, | 250 scoped_array<uint8> init_data, |
| 250 int init_data_size); | 251 int init_data_size); |
| 251 void SetOpaque(bool); | 252 void SetOpaque(bool); |
| 252 | 253 |
| 253 private: | 254 private: |
| 254 // Called after asynchronous initialization of a data source completed. | 255 // Called after asynchronous initialization of a data source completed. |
| 255 void DataSourceInitialized(const GURL& gurl, bool success); | 256 void DataSourceInitialized(const GURL& gurl, bool success); |
| 256 | 257 |
| 257 // Called when the data source is downloading or paused. | 258 // Called when the data source is downloading or paused. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 bool is_local_source_; | 358 bool is_local_source_; |
| 358 bool supports_save_; | 359 bool supports_save_; |
| 359 | 360 |
| 360 // The decryptor that manages decryption keys and decrypts encrypted frames. | 361 // The decryptor that manages decryption keys and decrypts encrypted frames. |
| 361 ProxyDecryptor decryptor_; | 362 ProxyDecryptor decryptor_; |
| 362 | 363 |
| 363 bool starting_; | 364 bool starting_; |
| 364 | 365 |
| 365 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; | 366 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; |
| 366 | 367 |
| 368 // Temporary for EME v0.1. In the future the init data type should be passed |
| 369 // through GenerateKeyRequest() directly from WebKit. |
| 370 std::string init_data_type_; |
| 371 |
| 367 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 372 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 368 }; | 373 }; |
| 369 | 374 |
| 370 } // namespace webkit_media | 375 } // namespace webkit_media |
| 371 | 376 |
| 372 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 377 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |