audio_reader.h 823 Bytes
Newer Older
1 2 3 4 5 6 7 8
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_PROTOCOL_AUDIO_READER_H_
#define REMOTING_PROTOCOL_AUDIO_READER_H_

#include "base/compiler_specific.h"
9
#include "base/macros.h"
10
#include "remoting/protocol/channel_dispatcher_base.h"
11 12 13 14

namespace remoting {
namespace protocol {

sergeyu's avatar
sergeyu committed
15 16
class AudioStub;

17
class AudioReader : public ChannelDispatcherBase {
18
 public:
sergeyu's avatar
sergeyu committed
19
  explicit AudioReader(AudioStub* audio_stub);
20
  ~AudioReader() override;
21 22

 private:
23
  void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override;
24 25

  AudioStub* audio_stub_;
26 27 28 29 30 31 32 33

  DISALLOW_COPY_AND_ASSIGN(AudioReader);
};

}  // namespace protocol
}  // namespace remoting

#endif  // REMOTING_PROTOCOL_AUDIO_READER_H_