| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient.
h" | 63 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient.
h" |
| 64 | 64 |
| 65 class RenderAudioSourceProvider; | 65 class RenderAudioSourceProvider; |
| 66 | 66 |
| 67 namespace WebKit { | 67 namespace WebKit { |
| 68 class WebAudioSourceProvider; | 68 class WebAudioSourceProvider; |
| 69 class WebFrame; | 69 class WebFrame; |
| 70 } | 70 } |
| 71 | 71 |
| 72 namespace media { | 72 namespace media { |
| 73 class AesDecryptor; | 73 class HmacAesDecryptor; |
| 74 class MediaLog; | 74 class MediaLog; |
| 75 } | 75 } |
| 76 | 76 |
| 77 namespace webkit_media { | 77 namespace webkit_media { |
| 78 | 78 |
| 79 class MediaStreamClient; | 79 class MediaStreamClient; |
| 80 class WebMediaPlayerDelegate; | 80 class WebMediaPlayerDelegate; |
| 81 class WebMediaPlayerProxy; | 81 class WebMediaPlayerProxy; |
| 82 | 82 |
| 83 class WebMediaPlayerImpl | 83 class WebMediaPlayerImpl |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 // The media pipeline and a bool tracking whether we have started it yet. | 273 // The media pipeline and a bool tracking whether we have started it yet. |
| 274 // | 274 // |
| 275 // TODO(scherkus): replace |started_| with a pointer check for |pipeline_| and | 275 // TODO(scherkus): replace |started_| with a pointer check for |pipeline_| and |
| 276 // have WebMediaPlayerImpl return the default values to WebKit instead of | 276 // have WebMediaPlayerImpl return the default values to WebKit instead of |
| 277 // relying on Pipeline to take care of default values. | 277 // relying on Pipeline to take care of default values. |
| 278 scoped_refptr<media::Pipeline> pipeline_; | 278 scoped_refptr<media::Pipeline> pipeline_; |
| 279 bool started_; | 279 bool started_; |
| 280 | 280 |
| 281 // The decryptor that manages decryption keys and decrypts encrypted frames. | 281 // The decryptor that manages decryption keys and decrypts encrypted frames. |
| 282 scoped_ptr<media::AesDecryptor> decryptor_; | 282 scoped_ptr<media::HmacAesDecryptor> decryptor_; |
| 283 | 283 |
| 284 scoped_ptr<media::MessageLoopFactory> message_loop_factory_; | 284 scoped_ptr<media::MessageLoopFactory> message_loop_factory_; |
| 285 | 285 |
| 286 // Playback state. | 286 // Playback state. |
| 287 // | 287 // |
| 288 // TODO(scherkus): we have these because Pipeline favours the simplicity of a | 288 // TODO(scherkus): we have these because Pipeline favours the simplicity of a |
| 289 // single "playback rate" over worrying about paused/stopped etc... It forces | 289 // single "playback rate" over worrying about paused/stopped etc... It forces |
| 290 // all clients to manage the pause+playback rate externally, but is that | 290 // all clients to manage the pause+playback rate externally, but is that |
| 291 // really a bad thing? | 291 // really a bad thing? |
| 292 // | 292 // |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 WebKit::WebAudioSourceProvider* audio_source_provider_; | 324 WebKit::WebAudioSourceProvider* audio_source_provider_; |
| 325 | 325 |
| 326 bool is_local_source_; | 326 bool is_local_source_; |
| 327 | 327 |
| 328 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 328 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 329 }; | 329 }; |
| 330 | 330 |
| 331 } // namespace webkit_media | 331 } // namespace webkit_media |
| 332 | 332 |
| 333 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 333 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |