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

Side by Side Diff: remoting/client/audio_decode_scheduler.h

Issue 10843031: Piping for audio decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small refactoring Created 8 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
6 #define REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/codec/audio_decoder.h"
Sergey Ulanov 2012/08/02 20:32:48 You don't need this include. AudioDecoder can be f
kxing 2012/08/03 14:51:47 Done.
11 #include "remoting/protocol/audio_stub.h"
12
13 namespace base {
14 class SingleThreadTaskRunner;
15 } // namespace base
16
17 namespace remoting {
18
19 namespace protocol {
20 class SessionConfig;
21 } // namespace protocol
22
23 class AudioPacket;
24 class AudioPlayer;
25
26 class AudioDecodeScheduler : public protocol::AudioStub {
27 public:
28 AudioDecodeScheduler(
29 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
30 scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner,
31 scoped_ptr<AudioPlayer> audio_player);
32 ~AudioDecodeScheduler();
33
34 // Initializes decoder with the information from the protocol config.
35 void Initialize(const protocol::SessionConfig& config);
36
37 // AudioStub implementation.
38 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
39 const base::Closure& done) OVERRIDE;
40
41 void DecodePacket(scoped_ptr<AudioPacket> packet);
Sergey Ulanov 2012/08/02 20:32:48 Shouldn't this be private?
kxing 2012/08/03 14:51:47 Done.
42
43 private:
44 void ProcessDecodedPacket(scoped_ptr<AudioPacket> packet);
45
46 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
47 scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner_;
48 scoped_ptr<AudioDecoder> decoder_;
49 scoped_ptr<AudioPlayer> audio_player_;
50
51 DISALLOW_COPY_AND_ASSIGN(AudioDecodeScheduler);
52 };
53
54 } // namespace remoting
55
56 #endif // REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698