| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 // | 288 // |
| 289 // TODO(scherkus): replace |started_| with a pointer check for |pipeline_| and | 289 // TODO(scherkus): replace |started_| with a pointer check for |pipeline_| and |
| 290 // have WebMediaPlayerImpl return the default values to WebKit instead of | 290 // have WebMediaPlayerImpl return the default values to WebKit instead of |
| 291 // relying on Pipeline to take care of default values. | 291 // relying on Pipeline to take care of default values. |
| 292 scoped_refptr<media::Pipeline> pipeline_; | 292 scoped_refptr<media::Pipeline> pipeline_; |
| 293 bool started_; | 293 bool started_; |
| 294 | 294 |
| 295 // The decryptor that manages decryption keys and decrypts encrypted frames. | 295 // The decryptor that manages decryption keys and decrypts encrypted frames. |
| 296 scoped_ptr<media::Decryptor> decryptor_; | 296 scoped_ptr<media::Decryptor> decryptor_; |
| 297 | 297 |
| 298 // The currently selected key system. Empty string means that no key system |
| 299 // has been selected. |
| 300 WebKit::WebString current_key_system_; |
| 301 |
| 298 scoped_ptr<media::MessageLoopFactory> message_loop_factory_; | 302 scoped_ptr<media::MessageLoopFactory> message_loop_factory_; |
| 299 | 303 |
| 300 // Playback state. | 304 // Playback state. |
| 301 // | 305 // |
| 302 // TODO(scherkus): we have these because Pipeline favours the simplicity of a | 306 // TODO(scherkus): we have these because Pipeline favours the simplicity of a |
| 303 // single "playback rate" over worrying about paused/stopped etc... It forces | 307 // single "playback rate" over worrying about paused/stopped etc... It forces |
| 304 // all clients to manage the pause+playback rate externally, but is that | 308 // all clients to manage the pause+playback rate externally, but is that |
| 305 // really a bad thing? | 309 // really a bad thing? |
| 306 // | 310 // |
| 307 // TODO(scherkus): since SetPlaybackRate(0) is asynchronous and we don't want | 311 // TODO(scherkus): since SetPlaybackRate(0) is asynchronous and we don't want |
| (...skipping 30 matching lines...) Expand all Loading... |
| 338 WebKit::WebAudioSourceProvider* audio_source_provider_; | 342 WebKit::WebAudioSourceProvider* audio_source_provider_; |
| 339 | 343 |
| 340 bool is_local_source_; | 344 bool is_local_source_; |
| 341 | 345 |
| 342 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 346 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 343 }; | 347 }; |
| 344 | 348 |
| 345 } // namespace webkit_media | 349 } // namespace webkit_media |
| 346 | 350 |
| 347 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 351 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |