| OLD | NEW |
| 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // 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 PipelineImpl which is the actual media player pipeline, it glues | 6 // It contains PipelineImpl 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 // PipelineImpl would creates multiple threads and access some public methods | 8 // PipelineImpl 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 WebKit::WebMediaPlayer::NetworkState network_state_; | 241 WebKit::WebMediaPlayer::NetworkState network_state_; |
| 242 WebKit::WebMediaPlayer::ReadyState ready_state_; | 242 WebKit::WebMediaPlayer::ReadyState ready_state_; |
| 243 | 243 |
| 244 // Message loops for posting tasks between Chrome's main thread. Also used | 244 // Message loops for posting tasks between Chrome's main thread. Also used |
| 245 // for DCHECKs so methods calls won't execute in the wrong thread. | 245 // for DCHECKs so methods calls won't execute in the wrong thread. |
| 246 MessageLoop* main_loop_; | 246 MessageLoop* main_loop_; |
| 247 | 247 |
| 248 // A collection of factories for creating filters. | 248 // A collection of factories for creating filters. |
| 249 scoped_refptr<media::FilterFactoryCollection> filter_factory_; | 249 scoped_refptr<media::FilterFactoryCollection> filter_factory_; |
| 250 | 250 |
| 251 // The actual pipeline. We do it a composition here because we expect to have | 251 // The actual pipeline and the thread it runs on. |
| 252 // the same lifetime as the pipeline. | 252 scoped_ptr<media::PipelineImpl> pipeline_; |
| 253 media::PipelineImpl pipeline_; | 253 base::Thread pipeline_thread_; |
| 254 | 254 |
| 255 WebKit::WebMediaPlayerClient* client_; | 255 WebKit::WebMediaPlayerClient* client_; |
| 256 | 256 |
| 257 scoped_refptr<Proxy> proxy_; | 257 scoped_refptr<Proxy> proxy_; |
| 258 | 258 |
| 259 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 259 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace webkit_glue | 262 } // namespace webkit_glue |
| 263 | 263 |
| 264 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 264 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |