| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/client/client_telemetry_logger.h" | 5 #include "remoting/client/client_telemetry_logger.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
| 9 #include "remoting/base/telemetry_log_writer.h" | 9 #include "remoting/base/telemetry_log_writer.h" |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 case protocol::OK: | 120 case protocol::OK: |
| 121 return ChromotingEvent::ConnectionError::NONE; | 121 return ChromotingEvent::ConnectionError::NONE; |
| 122 case protocol::PEER_IS_OFFLINE: | 122 case protocol::PEER_IS_OFFLINE: |
| 123 return ChromotingEvent::ConnectionError::HOST_OFFLINE; | 123 return ChromotingEvent::ConnectionError::HOST_OFFLINE; |
| 124 case protocol::SESSION_REJECTED: | 124 case protocol::SESSION_REJECTED: |
| 125 return ChromotingEvent::ConnectionError::SESSION_REJECTED; | 125 return ChromotingEvent::ConnectionError::SESSION_REJECTED; |
| 126 case protocol::INCOMPATIBLE_PROTOCOL: | 126 case protocol::INCOMPATIBLE_PROTOCOL: |
| 127 return ChromotingEvent::ConnectionError::INCOMPATIBLE_PROTOCOL; | 127 return ChromotingEvent::ConnectionError::INCOMPATIBLE_PROTOCOL; |
| 128 case protocol::AUTHENTICATION_FAILED: | 128 case protocol::AUTHENTICATION_FAILED: |
| 129 return ChromotingEvent::ConnectionError::AUTHENTICATION_FAILED; | 129 return ChromotingEvent::ConnectionError::AUTHENTICATION_FAILED; |
| 130 case protocol::INVALID_ACCOUNT: |
| 131 return ChromotingEvent::ConnectionError::INVALID_ACCOUNT; |
| 130 case protocol::CHANNEL_CONNECTION_ERROR: | 132 case protocol::CHANNEL_CONNECTION_ERROR: |
| 131 return ChromotingEvent::ConnectionError::P2P_FAILURE; | 133 return ChromotingEvent::ConnectionError::P2P_FAILURE; |
| 132 case protocol::SIGNALING_ERROR: | 134 case protocol::SIGNALING_ERROR: |
| 133 return ChromotingEvent::ConnectionError::NETWORK_FAILURE; | 135 return ChromotingEvent::ConnectionError::NETWORK_FAILURE; |
| 134 case protocol::SIGNALING_TIMEOUT: | 136 case protocol::SIGNALING_TIMEOUT: |
| 135 return ChromotingEvent::ConnectionError::NETWORK_FAILURE; | 137 return ChromotingEvent::ConnectionError::NETWORK_FAILURE; |
| 136 case protocol::HOST_OVERLOAD: | 138 case protocol::HOST_OVERLOAD: |
| 137 return ChromotingEvent::ConnectionError::HOST_OVERLOAD; | 139 return ChromotingEvent::ConnectionError::HOST_OVERLOAD; |
| 138 case protocol::MAX_SESSION_LENGTH: | 140 case protocol::MAX_SESSION_LENGTH: |
| 139 return ChromotingEvent::ConnectionError::MAX_SESSION_LENGTH; | 141 return ChromotingEvent::ConnectionError::MAX_SESSION_LENGTH; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 return event; | 239 return event; |
| 238 } | 240 } |
| 239 | 241 |
| 240 ChromotingEvent ClientTelemetryLogger::MakeSessionIdNewEvent() { | 242 ChromotingEvent ClientTelemetryLogger::MakeSessionIdNewEvent() { |
| 241 ChromotingEvent event(ChromotingEvent::Type::SESSION_ID_NEW); | 243 ChromotingEvent event(ChromotingEvent::Type::SESSION_ID_NEW); |
| 242 FillEventContext(&event); | 244 FillEventContext(&event); |
| 243 return event; | 245 return event; |
| 244 } | 246 } |
| 245 | 247 |
| 246 } // namespace remoting | 248 } // namespace remoting |
| OLD | NEW |