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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 const std::string& session_id, | 241 const std::string& session_id, |
242 scoped_array<uint8> message, | 242 scoped_array<uint8> message, |
243 int message_length, | 243 int message_length, |
244 const std::string& default_url); | 244 const std::string& default_url); |
245 void OnNeedKey(const std::string& key_system, | 245 void OnNeedKey(const std::string& key_system, |
246 const std::string& session_id, | 246 const std::string& session_id, |
247 scoped_array<uint8> init_data, | 247 scoped_array<uint8> init_data, |
248 int init_data_size); | 248 int init_data_size); |
249 void SetOpaque(bool); | 249 void SetOpaque(bool); |
250 | 250 |
251 bool SendNeedKey(scoped_array<uint8> init_data, int init_data_size); | |
ddorwin
2012/08/22 23:20:29
Why can't you use OnNeedKey?
fgalligan1
2012/08/23 02:39:11
See comment in .cc
| |
252 | |
251 private: | 253 private: |
252 // Called after asynchronous initialization of a data source completed. | 254 // Called after asynchronous initialization of a data source completed. |
253 void DataSourceInitialized(const GURL& gurl, bool success); | 255 void DataSourceInitialized(const GURL& gurl, bool success); |
254 | 256 |
255 // Called when the data source is downloading or paused. | 257 // Called when the data source is downloading or paused. |
256 void NotifyDownloading(bool is_downloading); | 258 void NotifyDownloading(bool is_downloading); |
257 | 259 |
258 // Finishes starting the pipeline due to a call to load(). | 260 // Finishes starting the pipeline due to a call to load(). |
259 void StartPipeline(); | 261 void StartPipeline(); |
260 | 262 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
343 ProxyDecryptor decryptor_; | 345 ProxyDecryptor decryptor_; |
344 | 346 |
345 bool starting_; | 347 bool starting_; |
346 | 348 |
347 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 349 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
348 }; | 350 }; |
349 | 351 |
350 } // namespace webkit_media | 352 } // namespace webkit_media |
351 | 353 |
352 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 354 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |