| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 media::Pipeline::BufferingState buffering_state); | 235 media::Pipeline::BufferingState buffering_state); |
| 236 void OnDemuxerOpened(); | 236 void OnDemuxerOpened(); |
| 237 void OnKeyAdded(const std::string& key_system, const std::string& session_id); | 237 void OnKeyAdded(const std::string& key_system, const std::string& session_id); |
| 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 const std::string& message, | 244 const std::string& message, |
| 245 const GURL& default_url); | 245 const std::string& default_url); |
| 246 void OnNeedKey(const std::string& key_system, | 246 void OnNeedKey(const std::string& key_system, |
| 247 const std::string& type, | 247 const std::string& type, |
| 248 const std::string& session_id, | 248 const std::string& session_id, |
| 249 scoped_array<uint8> init_data, | 249 scoped_array<uint8> init_data, |
| 250 int init_data_size); | 250 int init_data_size); |
| 251 void SetOpaque(bool); | 251 void SetOpaque(bool); |
| 252 | 252 |
| 253 private: | 253 private: |
| 254 // Called after asynchronous initialization of a data source completed. | 254 // Called after asynchronous initialization of a data source completed. |
| 255 void DataSourceInitialized(const GURL& gurl, bool success); | 255 void DataSourceInitialized(const GURL& gurl, bool success); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // Temporary for EME v0.1. In the future the init data type should be passed | 367 // Temporary for EME v0.1. In the future the init data type should be passed |
| 368 // through GenerateKeyRequest() directly from WebKit. | 368 // through GenerateKeyRequest() directly from WebKit. |
| 369 std::string init_data_type_; | 369 std::string init_data_type_; |
| 370 | 370 |
| 371 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 371 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 372 }; | 372 }; |
| 373 | 373 |
| 374 } // namespace webkit_media | 374 } // namespace webkit_media |
| 375 | 375 |
| 376 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 376 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |