audio_stub.h 786 B

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef REMOTING_PROTOCOL_AUDIO_STUB_H_
  5. #define REMOTING_PROTOCOL_AUDIO_STUB_H_
  6. #include <memory>
  7. #include "base/callback_forward.h"
  8. namespace remoting {
  9. class AudioPacket;
  10. namespace protocol {
  11. class AudioStub {
  12. public:
  13. AudioStub(const AudioStub&) = delete;
  14. AudioStub& operator=(const AudioStub&) = delete;
  15. virtual ~AudioStub() { }
  16. virtual void ProcessAudioPacket(std::unique_ptr<AudioPacket> audio_packet,
  17. base::OnceClosure done) = 0;
  18. protected:
  19. AudioStub() { }
  20. };
  21. } // namespace protocol
  22. } // namespace remoting
  23. #endif // REMOTING_PROTOCOL_AUDIO_STUB_H_