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

Side by Side Diff: media/filters/ffmpeg_audio_decoder.h

Issue 6171009: Remove MessageLoop methods from Filter interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied more CR suggestions & removed message_loop() methods where possible. Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/decoder_base_unittest.cc ('k') | media/filters/ffmpeg_audio_decoder.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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
7 7
8 #include "media/filters/decoder_base.h" 8 #include "media/filters/decoder_base.h"
9 9
10 struct AVCodecContext; 10 struct AVCodecContext;
11 11
12 namespace media { 12 namespace media {
13 13
14 // Forward declaration for scoped_ptr_malloc. 14 // Forward declaration for scoped_ptr_malloc.
15 class ScopedPtrAVFree; 15 class ScopedPtrAVFree;
16 16
17 class FFmpegAudioDecoder : public DecoderBase<AudioDecoder, Buffer> { 17 class FFmpegAudioDecoder : public DecoderBase<AudioDecoder, Buffer> {
18 public: 18 public:
19 FFmpegAudioDecoder(); 19 explicit FFmpegAudioDecoder(MessageLoop* message_loop);
20 virtual ~FFmpegAudioDecoder(); 20 virtual ~FFmpegAudioDecoder();
21 21
22 protected: 22 protected:
23 virtual void DoInitialize(DemuxerStream* demuxer_stream, bool* success, 23 virtual void DoInitialize(DemuxerStream* demuxer_stream, bool* success,
24 Task* done_cb); 24 Task* done_cb);
25 25
26 virtual void DoSeek(base::TimeDelta time, Task* done_cb); 26 virtual void DoSeek(base::TimeDelta time, Task* done_cb);
27 27
28 virtual void DoDecode(Buffer* input); 28 virtual void DoDecode(Buffer* input);
29 29
(...skipping 14 matching lines...) Expand all
44 scoped_ptr_malloc<uint8, ScopedPtrAVFree> output_buffer_; 44 scoped_ptr_malloc<uint8, ScopedPtrAVFree> output_buffer_;
45 45
46 static const size_t kOutputBufferSize; 46 static const size_t kOutputBufferSize;
47 47
48 DISALLOW_COPY_AND_ASSIGN(FFmpegAudioDecoder); 48 DISALLOW_COPY_AND_ASSIGN(FFmpegAudioDecoder);
49 }; 49 };
50 50
51 } // namespace media 51 } // namespace media
52 52
53 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 53 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
OLDNEW
« no previous file with comments | « media/filters/decoder_base_unittest.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698