Yuwei Huang | 05a0695 | 2019-05-29 05:41:46 | [diff] [blame] | 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 | |
| 5 | #ifndef REMOTING_SIGNALING_LOG_TO_SERVER_H_ |
| 6 | #define REMOTING_SIGNALING_LOG_TO_SERVER_H_ |
| 7 | |
| 8 | #include "remoting/signaling/server_log_entry.h" |
| 9 | |
| 10 | namespace remoting { |
| 11 | |
| 12 | // LogToServer sends log entries to a server. |
| 13 | // The contents of the log entries are described in server_log_entry.cc. |
| 14 | // They do not contain any personally identifiable information. |
| 15 | class LogToServer { |
| 16 | public: |
| 17 | virtual ~LogToServer() = default; |
| 18 | |
| 19 | virtual void Log(const ServerLogEntry& entry) = 0; |
| 20 | virtual ServerLogEntry::Mode mode() const = 0; |
| 21 | |
| 22 | protected: |
| 23 | LogToServer() = default; |
| 24 | }; |
| 25 | |
| 26 | } // namespace remoting |
| 27 | |
| 28 | #endif // REMOTING_SIGNALING_LOG_TO_SERVER_H_ |