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

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 1658303002: Create abstract interface for media::Pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FakeMediaSource includes. Created 4 years, 10 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
« no previous file with comments | « media/base/pipeline_unittest.cc ('k') | media/cast/test/fake_media_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/linked_ptr.h" 15 #include "base/memory/linked_ptr.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "build/build_config.h" 20 #include "build/build_config.h"
21 #include "media/base/pipeline.h" 21 #include "media/base/pipeline_impl.h"
22 #include "media/base/renderer_factory.h" 22 #include "media/base/renderer_factory.h"
23 #include "media/base/surface_manager.h" 23 #include "media/base/surface_manager.h"
24 #include "media/base/text_track.h" 24 #include "media/base/text_track.h"
25 #include "media/blink/buffered_data_source.h" 25 #include "media/blink/buffered_data_source.h"
26 #include "media/blink/buffered_data_source_host_impl.h" 26 #include "media/blink/buffered_data_source_host_impl.h"
27 #include "media/blink/media_blink_export.h" 27 #include "media/blink/media_blink_export.h"
28 #include "media/blink/multibuffer_data_source.h" 28 #include "media/blink/multibuffer_data_source.h"
29 #include "media/blink/video_frame_compositor.h" 29 #include "media/blink/video_frame_compositor.h"
30 #include "media/blink/webmediaplayer_delegate.h" 30 #include "media/blink/webmediaplayer_delegate.h"
31 #include "media/blink/webmediaplayer_params.h" 31 #include "media/blink/webmediaplayer_params.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // setBufferingStrategy(). 301 // setBufferingStrategy().
302 BufferedDataSource::BufferingStrategy buffering_strategy_; 302 BufferedDataSource::BufferingStrategy buffering_strategy_;
303 303
304 // Task runner for posting tasks on Chrome's main thread. Also used 304 // Task runner for posting tasks on Chrome's main thread. Also used
305 // for DCHECKs so methods calls won't execute in the wrong thread. 305 // for DCHECKs so methods calls won't execute in the wrong thread.
306 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 306 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
307 307
308 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 308 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
309 scoped_refptr<base::TaskRunner> worker_task_runner_; 309 scoped_refptr<base::TaskRunner> worker_task_runner_;
310 scoped_refptr<MediaLog> media_log_; 310 scoped_refptr<MediaLog> media_log_;
311 Pipeline pipeline_; 311 PipelineImpl pipeline_;
312 312
313 // The LoadType passed in the |load_type| parameter of the load() call. 313 // The LoadType passed in the |load_type| parameter of the load() call.
314 LoadType load_type_; 314 LoadType load_type_;
315 315
316 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize(). 316 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize().
317 PipelineMetadata pipeline_metadata_; 317 PipelineMetadata pipeline_metadata_;
318 318
319 // Whether the video is known to be opaque or not. 319 // Whether the video is known to be opaque or not.
320 bool opaque_; 320 bool opaque_;
321 321
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen. 453 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen.
454 // This will be null everywhere but Android. 454 // This will be null everywhere but Android.
455 SurfaceManager* surface_manager_; 455 SurfaceManager* surface_manager_;
456 456
457 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 457 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
458 }; 458 };
459 459
460 } // namespace media 460 } // namespace media
461 461
462 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 462 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/pipeline_unittest.cc ('k') | media/cast/test/fake_media_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698