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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool is_streaming, | 72 bool is_streaming, |
73 bool is_static, | 73 bool is_static, |
74 const base::Closure& ended_cb, | 74 const base::Closure& ended_cb, |
75 const PipelineMetadataCB& metadata_cb, | 75 const PipelineMetadataCB& metadata_cb, |
76 const BufferingStateCB& buffering_state_cb, | 76 const BufferingStateCB& buffering_state_cb, |
| 77 const NaturalSizeChangedCB& natural_size_changed_cb, |
77 const base::Closure& duration_change_cb, | 78 const base::Closure& duration_change_cb, |
78 const AddTextTrackCB& add_text_track_cb, | 79 const AddTextTrackCB& add_text_track_cb, |
79 const base::Closure& waiting_for_decryption_key_cb); | 80 const base::Closure& waiting_for_decryption_key_cb); |
80 | 81 |
81 // Request a seek to |time|. If |time_updated| is true, then the eventual | 82 // 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 | 83 // |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 | 84 // indicates that the seek was requested by Blink and a time update is |
84 // expected so that Blink can fire the seeked event. | 85 // expected so that Blink can fire the seeked event. |
85 void Seek(base::TimeDelta time, bool time_updated); | 86 void Seek(base::TimeDelta time, bool time_updated); |
86 | 87 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 166 |
166 base::ThreadChecker thread_checker_; | 167 base::ThreadChecker thread_checker_; |
167 base::WeakPtrFactory<PipelineController> weak_factory_; | 168 base::WeakPtrFactory<PipelineController> weak_factory_; |
168 | 169 |
169 DISALLOW_COPY_AND_ASSIGN(PipelineController); | 170 DISALLOW_COPY_AND_ASSIGN(PipelineController); |
170 }; | 171 }; |
171 | 172 |
172 } // namespace media | 173 } // namespace media |
173 | 174 |
174 #endif // MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ | 175 #endif // MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ |
OLD | NEW |