#ifndef REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
#define REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/audio_stub.h"
namespace base {
class SingleThreadTaskRunner;
}
namespace remoting {
namespace protocol {
class SessionConfig;
}
class AudioDecoder;
class AudioPacket;
class AudioPlayer;
class AudioDecodeScheduler : public protocol::AudioStub {
public:
AudioDecodeScheduler(
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner,
scoped_ptr<AudioPlayer> audio_player);
virtual ~AudioDecodeScheduler();
void Initialize(const protocol::SessionConfig& config);
virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
const base::Closure& done) OVERRIDE;
private:
class Core;
scoped_refptr<Core> core_;
DISALLOW_COPY_AND_ASSIGN(AudioDecodeScheduler);
};
}
#endif