log_to_server.h 795 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 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_SIGNALING_LOG_TO_SERVER_H_
  5. #define REMOTING_SIGNALING_LOG_TO_SERVER_H_
  6. #include "remoting/signaling/server_log_entry.h"
  7. namespace remoting {
  8. // LogToServer sends log entries to a server.
  9. // The contents of the log entries are described in server_log_entry.cc.
  10. // They do not contain any personally identifiable information.
  11. class LogToServer {
  12. public:
  13. virtual ~LogToServer() = default;
  14. virtual void Log(const ServerLogEntry& entry) = 0;
  15. virtual ServerLogEntry::Mode mode() const = 0;
  16. protected:
  17. LogToServer() = default;
  18. };
  19. } // namespace remoting
  20. #endif // REMOTING_SIGNALING_LOG_TO_SERVER_H_