blob: 79ce53bba3c41e2d1aa1a2f10390c37c1be8d581 [file] [log] [blame]
[email protected]8f794022012-06-15 22:21:401// 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_PROTOCOL_AUDIO_READER_H_
6#define REMOTING_PROTOCOL_AUDIO_READER_H_
7
[email protected]8f794022012-06-15 22:21:408#include "base/compiler_specific.h"
avi5a080f012015-12-22 23:15:439#include "base/macros.h"
[email protected]3e9187d02012-08-18 04:17:2310#include "remoting/protocol/channel_dispatcher_base.h"
[email protected]8f794022012-06-15 22:21:4011
12namespace remoting {
13namespace protocol {
14
sergeyud8af2ca2016-01-30 03:04:3615class AudioStub;
16
[email protected]3e9187d02012-08-18 04:17:2317class AudioReader : public ChannelDispatcherBase {
[email protected]8f794022012-06-15 22:21:4018 public:
sergeyu203832d2015-01-10 21:44:0919 explicit AudioReader(AudioStub* audio_stub);
dcheng562aba52014-10-21 12:30:1420 ~AudioReader() override;
[email protected]8f794022012-06-15 22:21:4021
[email protected]8f794022012-06-15 22:21:4022 private:
dcheng0765c492016-04-06 22:41:5323 void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override;
sergeyue61b68d2016-01-30 01:52:3624
25 AudioStub* audio_stub_;
[email protected]8f794022012-06-15 22:21:4026
27 DISALLOW_COPY_AND_ASSIGN(AudioReader);
28};
29
30} // namespace protocol
31} // namespace remoting
32
33#endif // REMOTING_PROTOCOL_AUDIO_READER_H_