OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_FILTERS_PIPELINE_CONTROLLER_H_ | 5 #ifndef MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ |
6 #define MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ | 6 #define MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // | 62 // |
63 // When |is_streaming| is true, Resume() will always start at the | 63 // When |is_streaming| is true, Resume() will always start at the |
64 // beginning of the stream, rather than attempting to seek to the current | 64 // beginning of the stream, rather than attempting to seek to the current |
65 // time. | 65 // time. |
66 // | 66 // |
67 // When |is_static| is true, seeks to the current time may be elided. | 67 // When |is_static| is true, seeks to the current time may be elided. |
68 // Otherwise it is assumed that the media data may have changed. | 68 // Otherwise it is assumed that the media data may have changed. |
69 // | 69 // |
70 // The remaining parameters are just passed directly to pipeline_.Start(). | 70 // The remaining parameters are just passed directly to pipeline_.Start(). |
71 void Start(Demuxer* demuxer, | 71 void Start(Demuxer* demuxer, |
| 72 Pipeline::Client* client, |
72 bool is_streaming, | 73 bool is_streaming, |
73 bool is_static, | 74 bool is_static); |
74 const base::Closure& ended_cb, | |
75 const PipelineMetadataCB& metadata_cb, | |
76 const BufferingStateCB& buffering_state_cb, | |
77 const base::Closure& duration_change_cb, | |
78 const AddTextTrackCB& add_text_track_cb, | |
79 const base::Closure& waiting_for_decryption_key_cb); | |
80 | 75 |
81 // Request a seek to |time|. If |time_updated| is true, then the eventual | 76 // Request a seek to |time|. If |time_updated| is true, then the eventual |
82 // |seeked_cb| callback will also have |time_updated| set to true; it | 77 // |seeked_cb| callback will also have |time_updated| set to true; it |
83 // indicates that the seek was requested by Blink and a time update is | 78 // indicates that the seek was requested by Blink and a time update is |
84 // expected so that Blink can fire the seeked event. | 79 // expected so that Blink can fire the seeked event. |
85 void Seek(base::TimeDelta time, bool time_updated); | 80 void Seek(base::TimeDelta time, bool time_updated); |
86 | 81 |
87 // Request that |pipeline_| be suspended. This is a no-op if |pipeline_| has | 82 // Request that |pipeline_| be suspended. This is a no-op if |pipeline_| has |
88 // been suspended. | 83 // been suspended. |
89 void Suspend(); | 84 void Suspend(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 160 |
166 base::ThreadChecker thread_checker_; | 161 base::ThreadChecker thread_checker_; |
167 base::WeakPtrFactory<PipelineController> weak_factory_; | 162 base::WeakPtrFactory<PipelineController> weak_factory_; |
168 | 163 |
169 DISALLOW_COPY_AND_ASSIGN(PipelineController); | 164 DISALLOW_COPY_AND_ASSIGN(PipelineController); |
170 }; | 165 }; |
171 | 166 |
172 } // namespace media | 167 } // namespace media |
173 | 168 |
174 #endif // MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ | 169 #endif // MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ |
OLD | NEW |