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

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

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: rebase Created 4 years, 5 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.h ('k') | media/base/pipeline_impl.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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BASE_PIPELINE_IMPL_H_ 5 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_
6 #define MEDIA_BASE_PIPELINE_IMPL_H_ 6 #define MEDIA_BASE_PIPELINE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 float GetVolume() const override; 89 float GetVolume() const override;
90 void SetVolume(float volume) override; 90 void SetVolume(float volume) override;
91 base::TimeDelta GetMediaTime() const override; 91 base::TimeDelta GetMediaTime() const override;
92 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override; 92 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override;
93 base::TimeDelta GetMediaDuration() const override; 93 base::TimeDelta GetMediaDuration() const override;
94 bool DidLoadingProgress() override; 94 bool DidLoadingProgress() override;
95 PipelineStatistics GetStatistics() const override; 95 PipelineStatistics GetStatistics() const override;
96 void SetCdm(CdmContext* cdm_context, 96 void SetCdm(CdmContext* cdm_context,
97 const CdmAttachedCB& cdm_attached_cb) override; 97 const CdmAttachedCB& cdm_attached_cb) override;
98 98
99 // |enabledTrackIds| contains track ids of enabled audio tracks.
100 void OnEnabledAudioTracksChanged(
101 const std::vector<MediaTrack::Id>& enabledTrackIds) override;
102
103 // |trackId| either empty, which means no video track is selected, or contain
104 // one element - the selected video track id.
105 void OnSelectedVideoTrackChanged(
106 const std::vector<MediaTrack::Id>& selectedTrackId) override;
107
99 private: 108 private:
100 friend class MediaLog; 109 friend class MediaLog;
101 class RendererWrapper; 110 class RendererWrapper;
102 111
103 // Pipeline states, as described above. 112 // Pipeline states, as described above.
104 // TODO(alokp): Move this to RendererWrapper after removing the references 113 // TODO(alokp): Move this to RendererWrapper after removing the references
105 // from MediaLog. 114 // from MediaLog.
106 enum State { 115 enum State {
107 kCreated, 116 kCreated,
108 kInitDemuxer, 117 kInitDemuxer,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 173
165 base::ThreadChecker thread_checker_; 174 base::ThreadChecker thread_checker_;
166 base::WeakPtrFactory<PipelineImpl> weak_factory_; 175 base::WeakPtrFactory<PipelineImpl> weak_factory_;
167 176
168 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); 177 DISALLOW_COPY_AND_ASSIGN(PipelineImpl);
169 }; 178 };
170 179
171 } // namespace media 180 } // namespace media
172 181
173 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ 182 #endif // MEDIA_BASE_PIPELINE_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/pipeline.h ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698