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

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

Issue 11492003: Encrypted Media: Support Audio Decrypt-Only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments mostly resolved (I believe); need to add/update tests if this looks good Created 8 years 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 | « no previous file | media/base/decryptor.h » ('j') | media/base/pipeline.h » ('J')
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_AUDIO_RENDERER_H_ 5 #ifndef MEDIA_BASE_AUDIO_RENDERER_H_
6 #define MEDIA_BASE_AUDIO_RENDERER_H_ 6 #define MEDIA_BASE_AUDIO_RENDERER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "media/base/decryptor.h"
13 #include "media/base/media_export.h" 14 #include "media/base/media_export.h"
14 #include "media/base/pipeline_status.h" 15 #include "media/base/pipeline_status.h"
15 16
16 namespace media { 17 namespace media {
17 18
18 class AudioDecoder; 19 class AudioDecoder;
19 class DemuxerStream; 20 class DemuxerStream;
20 21
21 class MEDIA_EXPORT AudioRenderer 22 class MEDIA_EXPORT AudioRenderer
22 : public base::RefCountedThreadSafe<AudioRenderer> { 23 : public base::RefCountedThreadSafe<AudioRenderer> {
(...skipping 18 matching lines...) Expand all
41 // 42 //
42 // |ended_cb| is executed when audio rendering has reached the end of stream. 43 // |ended_cb| is executed when audio rendering has reached the end of stream.
43 // 44 //
44 // |disabled_cb| is executed when audio rendering has been disabled due to 45 // |disabled_cb| is executed when audio rendering has been disabled due to
45 // external factors (i.e., device was removed). |time_cb| will no longer be 46 // external factors (i.e., device was removed). |time_cb| will no longer be
46 // executed. 47 // executed.
47 // 48 //
48 // |error_cb| is executed if an error was encountered. 49 // |error_cb| is executed if an error was encountered.
49 virtual void Initialize(const scoped_refptr<DemuxerStream>& stream, 50 virtual void Initialize(const scoped_refptr<DemuxerStream>& stream,
50 const AudioDecoderList& decoders, 51 const AudioDecoderList& decoders,
52 const SetDecryptorReadyCB& set_decryptor_ready_cb,
51 const PipelineStatusCB& init_cb, 53 const PipelineStatusCB& init_cb,
52 const StatisticsCB& statistics_cb, 54 const StatisticsCB& statistics_cb,
53 const base::Closure& underflow_cb, 55 const base::Closure& underflow_cb,
54 const TimeCB& time_cb, 56 const TimeCB& time_cb,
55 const base::Closure& ended_cb, 57 const base::Closure& ended_cb,
56 const base::Closure& disabled_cb, 58 const base::Closure& disabled_cb,
57 const PipelineStatusCB& error_cb) = 0; 59 const PipelineStatusCB& error_cb) = 0;
58 60
59 // Start audio decoding and rendering at the current playback rate, executing 61 // Start audio decoding and rendering at the current playback rate, executing
60 // |callback| when playback is underway. 62 // |callback| when playback is underway.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 AudioRenderer(); 98 AudioRenderer();
97 virtual ~AudioRenderer(); 99 virtual ~AudioRenderer();
98 100
99 private: 101 private:
100 DISALLOW_COPY_AND_ASSIGN(AudioRenderer); 102 DISALLOW_COPY_AND_ASSIGN(AudioRenderer);
101 }; 103 };
102 104
103 } // namespace media 105 } // namespace media
104 106
105 #endif // MEDIA_BASE_AUDIO_RENDERER_H_ 107 #endif // MEDIA_BASE_AUDIO_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/decryptor.h » ('j') | media/base/pipeline.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698