[email protected] | 0681017 | 2012-06-07 15:31:12 | [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_STUB_H_ | ||||
6 | #define REMOTING_PROTOCOL_AUDIO_STUB_H_ | ||||
7 | |||||
dcheng | 0765c49 | 2016-04-06 22:41:53 | [diff] [blame] | 8 | #include <memory> |
9 | |||||
[email protected] | 0681017 | 2012-06-07 15:31:12 | [diff] [blame] | 10 | #include "base/callback_forward.h" |
avi | 5a080f01 | 2015-12-22 23:15:43 | [diff] [blame] | 11 | #include "base/macros.h" |
[email protected] | 0681017 | 2012-06-07 15:31:12 | [diff] [blame] | 12 | |
13 | namespace remoting { | ||||
14 | |||||
15 | class AudioPacket; | ||||
16 | |||||
17 | namespace protocol { | ||||
18 | |||||
19 | class AudioStub { | ||||
20 | public: | ||||
21 | virtual ~AudioStub() { } | ||||
22 | |||||
dcheng | 0765c49 | 2016-04-06 22:41:53 | [diff] [blame] | 23 | virtual void ProcessAudioPacket(std::unique_ptr<AudioPacket> audio_packet, |
[email protected] | 0681017 | 2012-06-07 15:31:12 | [diff] [blame] | 24 | const base::Closure& done) = 0; |
25 | |||||
26 | protected: | ||||
27 | AudioStub() { } | ||||
28 | |||||
29 | private: | ||||
30 | DISALLOW_COPY_AND_ASSIGN(AudioStub); | ||||
31 | }; | ||||
32 | |||||
33 | } // namespace protocol | ||||
34 | } // namespace remoting | ||||
35 | |||||
36 | #endif // REMOTING_PROTOCOL_AUDIO_STUB_H_ |