[email protected] | 8f79402 | 2012-06-15 22:21:40 | [diff] [blame] | 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_PROTOCOL_AUDIO_READER_H_ | ||||
6 | #define REMOTING_PROTOCOL_AUDIO_READER_H_ | ||||
7 | |||||
[email protected] | 8f79402 | 2012-06-15 22:21:40 | [diff] [blame] | 8 | #include "base/compiler_specific.h" |
avi | 5a080f01 | 2015-12-22 23:15:43 | [diff] [blame] | 9 | #include "base/macros.h" |
[email protected] | 3e9187d0 | 2012-08-18 04:17:23 | [diff] [blame] | 10 | #include "remoting/protocol/channel_dispatcher_base.h" |
[email protected] | 8f79402 | 2012-06-15 22:21:40 | [diff] [blame] | 11 | |
12 | namespace remoting { | ||||
13 | namespace protocol { | ||||
14 | |||||
sergeyu | d8af2ca | 2016-01-30 03:04:36 | [diff] [blame] | 15 | class AudioStub; |
16 | |||||
[email protected] | 3e9187d0 | 2012-08-18 04:17:23 | [diff] [blame] | 17 | class AudioReader : public ChannelDispatcherBase { |
[email protected] | 8f79402 | 2012-06-15 22:21:40 | [diff] [blame] | 18 | public: |
sergeyu | 203832d | 2015-01-10 21:44:09 | [diff] [blame] | 19 | explicit AudioReader(AudioStub* audio_stub); |
dcheng | 562aba5 | 2014-10-21 12:30:14 | [diff] [blame] | 20 | ~AudioReader() override; |
[email protected] | 8f79402 | 2012-06-15 22:21:40 | [diff] [blame] | 21 | |
[email protected] | 8f79402 | 2012-06-15 22:21:40 | [diff] [blame] | 22 | private: |
dcheng | 0765c49 | 2016-04-06 22:41:53 | [diff] [blame] | 23 | void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override; |
sergeyu | e61b68d | 2016-01-30 01:52:36 | [diff] [blame] | 24 | |
25 | AudioStub* audio_stub_; | ||||
[email protected] | 8f79402 | 2012-06-15 22:21:40 | [diff] [blame] | 26 | |
27 | DISALLOW_COPY_AND_ASSIGN(AudioReader); | ||||
28 | }; | ||||
29 | |||||
30 | } // namespace protocol | ||||
31 | } // namespace remoting | ||||
32 | |||||
33 | #endif // REMOTING_PROTOCOL_AUDIO_READER_H_ |