OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_SIGNALING_SERVER_LOG_ENTRY_H_ | 5 #ifndef REMOTING_SIGNALING_SERVER_LOG_ENTRY_H_ |
6 #define REMOTING_SIGNALING_SERVER_LOG_ENTRY_H_ | 6 #define REMOTING_SIGNALING_SERVER_LOG_ENTRY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // containers. | 21 // containers. |
22 class ServerLogEntry { | 22 class ServerLogEntry { |
23 public: | 23 public: |
24 // The mode of a connection. | 24 // The mode of a connection. |
25 enum Mode { | 25 enum Mode { |
26 IT2ME, | 26 IT2ME, |
27 ME2ME | 27 ME2ME |
28 }; | 28 }; |
29 | 29 |
30 ServerLogEntry(); | 30 ServerLogEntry(); |
| 31 ServerLogEntry(const ServerLogEntry& other); |
31 ~ServerLogEntry(); | 32 ~ServerLogEntry(); |
32 | 33 |
33 // Sets an arbitrary key/value entry. | 34 // Sets an arbitrary key/value entry. |
34 void Set(const std::string& key, const std::string& value); | 35 void Set(const std::string& key, const std::string& value); |
35 | 36 |
36 // Adds a field describing the CPU type of the platform. | 37 // Adds a field describing the CPU type of the platform. |
37 void AddCpuField(); | 38 void AddCpuField(); |
38 | 39 |
39 // Adds a field describing the mode of a connection to this log entry. | 40 // Adds a field describing the mode of a connection to this log entry. |
40 void AddModeField(Mode mode); | 41 void AddModeField(Mode mode); |
(...skipping 14 matching lines...) Expand all Loading... |
55 | 56 |
56 private: | 57 private: |
57 typedef std::map<std::string, std::string> ValuesMap; | 58 typedef std::map<std::string, std::string> ValuesMap; |
58 | 59 |
59 ValuesMap values_map_; | 60 ValuesMap values_map_; |
60 }; | 61 }; |
61 | 62 |
62 } // namespace remoting | 63 } // namespace remoting |
63 | 64 |
64 #endif // REMOTING_SIGNALING_SERVER_LOG_ENTRY_H_ | 65 #endif // REMOTING_SIGNALING_SERVER_LOG_ENTRY_H_ |
OLD | NEW |