OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "remoting/host/server_log_entry.h" | 5 #include "remoting/host/server_log_entry.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/stringize_macros.h" | 8 #include "base/strings/stringize_macros.h" |
9 #include "base/sys_info.h" | 9 #include "base/sys_info.h" |
10 #include "remoting/base/constants.h" | 10 #include "remoting/base/constants.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 const char kKeySessionState[] = "session-state"; | 38 const char kKeySessionState[] = "session-state"; |
39 const char kValueSessionStateConnected[] = "connected"; | 39 const char kValueSessionStateConnected[] = "connected"; |
40 const char kValueSessionStateClosed[] = "closed"; | 40 const char kValueSessionStateClosed[] = "closed"; |
41 | 41 |
42 const char kStatusName[] = "status"; | 42 const char kStatusName[] = "status"; |
43 const char kExitCodeName[] = "exit-code"; | 43 const char kExitCodeName[] = "exit-code"; |
44 | 44 |
45 const char kKeyOsName[] = "os-name"; | 45 const char kKeyOsName[] = "os-name"; |
46 | 46 |
| 47 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
47 const char kKeyOsVersion[] = "os-version"; | 48 const char kKeyOsVersion[] = "os-version"; |
| 49 #endif |
48 | 50 |
49 const char kKeyHostVersion[] = "host-version"; | 51 const char kKeyHostVersion[] = "host-version"; |
50 | 52 |
51 const char kKeyCpu[] = "cpu"; | 53 const char kKeyCpu[] = "cpu"; |
52 | 54 |
53 const char kKeyConnectionType[] = "connection-type"; | 55 const char kKeyConnectionType[] = "connection-type"; |
54 | 56 |
55 } // namespace | 57 } // namespace |
56 | 58 |
57 ServerLogEntry::ServerLogEntry() { | 59 ServerLogEntry::ServerLogEntry() { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // static | 162 // static |
161 const char* ServerLogEntry::GetValueSessionState(bool connected) { | 163 const char* ServerLogEntry::GetValueSessionState(bool connected) { |
162 return connected ? kValueSessionStateConnected : kValueSessionStateClosed; | 164 return connected ? kValueSessionStateConnected : kValueSessionStateClosed; |
163 } | 165 } |
164 | 166 |
165 void ServerLogEntry::Set(const std::string& key, const std::string& value) { | 167 void ServerLogEntry::Set(const std::string& key, const std::string& value) { |
166 values_map_[key] = value; | 168 values_map_[key] = value; |
167 } | 169 } |
168 | 170 |
169 } // namespace remoting | 171 } // namespace remoting |
OLD | NEW |