Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1324)

Side by Side Diff: remoting/client/client_telemetry_logger.cc

Issue 1987163002: Add DOMAIN_MISMATCH message end to end (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO in Jingle session Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/base/chromoting_event.h ('k') | remoting/client/ios/build/localizable_string_id_list.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698