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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 27 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
28 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 28 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
29 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" | 29 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 class WebLocalFrame; | 33 class WebLocalFrame; |
34 } | 34 } |
35 | 35 |
36 namespace base { | 36 namespace base { |
37 class MessageLoopProxy; | 37 class SingleThreadTaskRunner; |
38 } | 38 } |
39 | 39 |
40 namespace cc_blink { | 40 namespace cc_blink { |
41 class WebLayerImpl; | 41 class WebLayerImpl; |
42 } | 42 } |
43 | 43 |
44 namespace media { | 44 namespace media { |
45 class ChunkDemuxer; | 45 class ChunkDemuxer; |
46 class GpuVideoAcceleratorFactories; | 46 class GpuVideoAcceleratorFactories; |
47 class MediaLog; | 47 class MediaLog; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 blink::WebLocalFrame* frame_; | 224 blink::WebLocalFrame* frame_; |
225 | 225 |
226 // TODO(hclam): get rid of these members and read from the pipeline directly. | 226 // TODO(hclam): get rid of these members and read from the pipeline directly. |
227 blink::WebMediaPlayer::NetworkState network_state_; | 227 blink::WebMediaPlayer::NetworkState network_state_; |
228 blink::WebMediaPlayer::ReadyState ready_state_; | 228 blink::WebMediaPlayer::ReadyState ready_state_; |
229 | 229 |
230 // Preload state for when |data_source_| is created after setPreload(). | 230 // Preload state for when |data_source_| is created after setPreload(). |
231 content::Preload preload_; | 231 content::Preload preload_; |
232 | 232 |
233 // Message loops for posting tasks on Chrome's main thread. Also used | 233 // Task runner for posting tasks on Chrome's main thread. Also used |
234 // for DCHECKs so methods calls won't execute in the wrong thread. | 234 // for DCHECKs so methods calls won't execute in the wrong thread. |
235 const scoped_refptr<base::MessageLoopProxy> main_loop_; | 235 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
236 | 236 |
237 scoped_refptr<base::MessageLoopProxy> media_loop_; | 237 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; |
238 scoped_refptr<media::MediaLog> media_log_; | 238 scoped_refptr<media::MediaLog> media_log_; |
239 media::Pipeline pipeline_; | 239 media::Pipeline pipeline_; |
240 | 240 |
241 // The LoadType passed in the |load_type| parameter of the load() call. | 241 // The LoadType passed in the |load_type| parameter of the load() call. |
242 LoadType load_type_; | 242 LoadType load_type_; |
243 | 243 |
244 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize(). | 244 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize(). |
245 media::PipelineMetadata pipeline_metadata_; | 245 media::PipelineMetadata pipeline_metadata_; |
246 | 246 |
247 // Whether the video is known to be opaque or not. | 247 // Whether the video is known to be opaque or not. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 int text_track_index_; | 312 int text_track_index_; |
313 | 313 |
314 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; | 314 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; |
315 | 315 |
316 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 316 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
317 }; | 317 }; |
318 | 318 |
319 } // namespace content | 319 } // namespace content |
320 | 320 |
321 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 321 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |