#ifndef REMOTING_CLIENT_CLI_LOGGING_AUDIO_STREAM_CONSUMER_H_
#define REMOTING_CLIENT_CLI_LOGGING_AUDIO_STREAM_CONSUMER_H_
#include "base/memory/weak_ptr.h"
#include "remoting/protocol/audio_stub.h"
namespace remoting {
class AudioPacket;
class LoggingAudioStreamConsumer : public protocol::AudioStub {
public:
LoggingAudioStreamConsumer();
LoggingAudioStreamConsumer(const LoggingAudioStreamConsumer&) = delete;
LoggingAudioStreamConsumer& operator=(const LoggingAudioStreamConsumer&) =
delete;
~LoggingAudioStreamConsumer() override;
void ProcessAudioPacket(std::unique_ptr<AudioPacket> packet,
base::OnceClosure done) override;
base::WeakPtr<LoggingAudioStreamConsumer> GetWeakPtr();
private:
base::WeakPtrFactory<LoggingAudioStreamConsumer> weak_factory_{this};
};
}
#endif