Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: content/renderer/media/webmediaplayer_impl.h

Issue 508293003: Change media MessageLoopProxy usage to SingleThreadTaskRunners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 blink::WebLocalFrame* frame_; 227 blink::WebLocalFrame* frame_;
228 228
229 // TODO(hclam): get rid of these members and read from the pipeline directly. 229 // TODO(hclam): get rid of these members and read from the pipeline directly.
230 blink::WebMediaPlayer::NetworkState network_state_; 230 blink::WebMediaPlayer::NetworkState network_state_;
231 blink::WebMediaPlayer::ReadyState ready_state_; 231 blink::WebMediaPlayer::ReadyState ready_state_;
232 232
233 // Preload state for when |data_source_| is created after setPreload(). 233 // Preload state for when |data_source_| is created after setPreload().
234 content::Preload preload_; 234 content::Preload preload_;
235 235
236 // Message loops for posting tasks on Chrome's main thread. Also used 236 // Task runner for posting tasks on Chrome's main thread. Also used
237 // for DCHECKs so methods calls won't execute in the wrong thread. 237 // for DCHECKs so methods calls won't execute in the wrong thread.
238 const scoped_refptr<base::MessageLoopProxy> main_loop_; 238 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
239 239
240 scoped_refptr<base::MessageLoopProxy> media_loop_; 240 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
241 scoped_refptr<media::MediaLog> media_log_; 241 scoped_refptr<media::MediaLog> media_log_;
242 media::Pipeline pipeline_; 242 media::Pipeline pipeline_;
243 243
244 // The LoadType passed in the |load_type| parameter of the load() call. 244 // The LoadType passed in the |load_type| parameter of the load() call.
245 LoadType load_type_; 245 LoadType load_type_;
246 246
247 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize(). 247 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize().
248 media::PipelineMetadata pipeline_metadata_; 248 media::PipelineMetadata pipeline_metadata_;
249 249
250 // Whether the video is known to be opaque or not. 250 // Whether the video is known to be opaque or not.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 int text_track_index_; 317 int text_track_index_;
318 318
319 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; 319 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_;
320 320
321 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 321 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
322 }; 322 };
323 323
324 } // namespace content 324 } // namespace content
325 325
326 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 326 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698