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

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

Issue 1812543003: Allow muting/unmuting audio through media track API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-sb-tracks6
Patch Set: Avoid ChunkDemuxer/PipelineImpl deadlock Created 4 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
« 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 "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const PipelineStatusCB& seek_cb) override; 104 const PipelineStatusCB& seek_cb) override;
105 float GetVolume() const override; 105 float GetVolume() const override;
106 void SetVolume(float volume) override; 106 void SetVolume(float volume) override;
107 base::TimeDelta GetMediaTime() const override; 107 base::TimeDelta GetMediaTime() const override;
108 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override; 108 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override;
109 base::TimeDelta GetMediaDuration() const override; 109 base::TimeDelta GetMediaDuration() const override;
110 bool DidLoadingProgress() override; 110 bool DidLoadingProgress() override;
111 PipelineStatistics GetStatistics() const override; 111 PipelineStatistics GetStatistics() const override;
112 void SetCdm(CdmContext* cdm_context, 112 void SetCdm(CdmContext* cdm_context,
113 const CdmAttachedCB& cdm_attached_cb) override; 113 const CdmAttachedCB& cdm_attached_cb) override;
114 void OnEnabledAudioStreamsChanged(
115 const std::vector<const DemuxerStream*>& enabledAudioStreams) override;
116 void OnSelectedVideoStreamChanged(
117 const DemuxerStream* selectedVideoStream) override;
114 118
115 private: 119 private:
116 friend class MediaLog; 120 friend class MediaLog;
117 friend class PipelineImplTest; 121 friend class PipelineImplTest;
118 122
119 // Pipeline states, as described above. 123 // Pipeline states, as described above.
120 enum State { 124 enum State {
121 kCreated, 125 kCreated,
122 kInitDemuxer, 126 kInitDemuxer,
123 kInitRenderer, 127 kInitRenderer,
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Declared last so that weak pointers will be invalidated before all other 341 // Declared last so that weak pointers will be invalidated before all other
338 // member variables. 342 // member variables.
339 base::WeakPtrFactory<PipelineImpl> weak_factory_; 343 base::WeakPtrFactory<PipelineImpl> weak_factory_;
340 344
341 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); 345 DISALLOW_COPY_AND_ASSIGN(PipelineImpl);
342 }; 346 };
343 347
344 } // namespace media 348 } // namespace media
345 349
346 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ 350 #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