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

Side by Side Diff: media/base/pipeline.h

Issue 236023003: Add WebMediaPlayer::timelineOffset() support to WebMediaPlayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR comments Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_PIPELINE_H_ 5 #ifndef MEDIA_BASE_PIPELINE_H_
6 #define MEDIA_BASE_PIPELINE_H_ 6 #define MEDIA_BASE_PIPELINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 23 matching lines...) Expand all
34 class TextTrackConfig; 34 class TextTrackConfig;
35 class VideoRenderer; 35 class VideoRenderer;
36 36
37 // Metadata describing a pipeline once it has been initialized. 37 // Metadata describing a pipeline once it has been initialized.
38 struct PipelineMetadata { 38 struct PipelineMetadata {
39 PipelineMetadata() : has_audio(false), has_video(false) {} 39 PipelineMetadata() : has_audio(false), has_video(false) {}
40 40
41 bool has_audio; 41 bool has_audio;
42 bool has_video; 42 bool has_video;
43 gfx::Size natural_size; 43 gfx::Size natural_size;
44 base::Time timeline_offset;
44 }; 45 };
45 46
46 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB; 47 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB;
47 48
48 // Pipeline runs the media pipeline. Filters are created and called on the 49 // Pipeline runs the media pipeline. Filters are created and called on the
49 // task runner injected into this object. Pipeline works like a state 50 // task runner injected into this object. Pipeline works like a state
50 // machine to perform asynchronous initialization, pausing, seeking and playing. 51 // machine to perform asynchronous initialization, pausing, seeking and playing.
51 // 52 //
52 // Here's a state diagram that describes the lifetime of this object. 53 // Here's a state diagram that describes the lifetime of this object.
53 // 54 //
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 scoped_ptr<SerialRunner> pending_callbacks_; 422 scoped_ptr<SerialRunner> pending_callbacks_;
422 423
423 base::ThreadChecker thread_checker_; 424 base::ThreadChecker thread_checker_;
424 425
425 DISALLOW_COPY_AND_ASSIGN(Pipeline); 426 DISALLOW_COPY_AND_ASSIGN(Pipeline);
426 }; 427 };
427 428
428 } // namespace media 429 } // namespace media
429 430
430 #endif // MEDIA_BASE_PIPELINE_H_ 431 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698