test_echo_extension.h 880 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2017 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_HOST_TEST_ECHO_EXTENSION_H_
  5. #define REMOTING_HOST_TEST_ECHO_EXTENSION_H_
  6. #include "remoting/host/host_extension.h"
  7. namespace remoting {
  8. class TestEchoExtension : public HostExtension {
  9. public:
  10. TestEchoExtension();
  11. TestEchoExtension(const TestEchoExtension&) = delete;
  12. TestEchoExtension& operator=(const TestEchoExtension&) = delete;
  13. ~TestEchoExtension() override;
  14. // HostExtension interface.
  15. std::string capability() const override;
  16. std::unique_ptr<HostExtensionSession> CreateExtensionSession(
  17. ClientSessionDetails* client_session_details,
  18. protocol::ClientStub* client_stub) override;
  19. };
  20. } // namespace remoting
  21. #endif // REMOTING_HOST_TEST_ECHO_EXTENSION_H_