| 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/signaling/telemetry_log_writer.h" | 9 #include "remoting/base/telemetry_log_writer.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 const char kSessionIdAlphabet[] = | 13 const char kSessionIdAlphabet[] = |
| 14 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; | 14 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; |
| 15 const int kSessionIdLength = 20; | 15 const int kSessionIdLength = 20; |
| 16 | 16 |
| 17 const int kMaxSessionIdAgeDays = 1; | 17 const int kMaxSessionIdAgeDays = 1; |
| 18 | 18 |
| 19 } // namespace | 19 } // namespace |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 return event; | 237 return event; |
| 238 } | 238 } |
| 239 | 239 |
| 240 ChromotingEvent ClientTelemetryLogger::MakeSessionIdNewEvent() { | 240 ChromotingEvent ClientTelemetryLogger::MakeSessionIdNewEvent() { |
| 241 ChromotingEvent event(ChromotingEvent::Type::SESSION_ID_NEW); | 241 ChromotingEvent event(ChromotingEvent::Type::SESSION_ID_NEW); |
| 242 FillEventContext(&event); | 242 FillEventContext(&event); |
| 243 return event; | 243 return event; |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace remoting | 246 } // namespace remoting |
| OLD | NEW |