OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // setBufferingStrategy(). | 309 // setBufferingStrategy(). |
310 BufferedDataSource::BufferingStrategy buffering_strategy_; | 310 BufferedDataSource::BufferingStrategy buffering_strategy_; |
311 | 311 |
312 // Task runner for posting tasks on Chrome's main thread. Also used | 312 // Task runner for posting tasks on Chrome's main thread. Also used |
313 // for DCHECKs so methods calls won't execute in the wrong thread. | 313 // for DCHECKs so methods calls won't execute in the wrong thread. |
314 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 314 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
315 | 315 |
316 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; | 316 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; |
317 scoped_refptr<base::TaskRunner> worker_task_runner_; | 317 scoped_refptr<base::TaskRunner> worker_task_runner_; |
318 scoped_refptr<MediaLog> media_log_; | 318 scoped_refptr<MediaLog> media_log_; |
319 Pipeline pipeline_; | 319 PipelineImpl pipeline_; |
320 | 320 |
321 // The LoadType passed in the |load_type| parameter of the load() call. | 321 // The LoadType passed in the |load_type| parameter of the load() call. |
322 LoadType load_type_; | 322 LoadType load_type_; |
323 | 323 |
324 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize(). | 324 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize(). |
325 PipelineMetadata pipeline_metadata_; | 325 PipelineMetadata pipeline_metadata_; |
326 | 326 |
327 // Whether the video is known to be opaque or not. | 327 // Whether the video is known to be opaque or not. |
328 bool opaque_; | 328 bool opaque_; |
329 | 329 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 #endif | 435 #endif |
436 | 436 |
437 scoped_ptr<RendererFactory> renderer_factory_; | 437 scoped_ptr<RendererFactory> renderer_factory_; |
438 | 438 |
439 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 439 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
440 }; | 440 }; |
441 | 441 |
442 } // namespace media | 442 } // namespace media |
443 | 443 |
444 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 444 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |