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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
7 | 7 |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
| 10 #include "components/arc/common/auth.mojom.h" |
| 11 |
10 namespace base { | 12 namespace base { |
11 class TimeDelta; | 13 class TimeDelta; |
12 } | 14 } |
13 | 15 |
14 namespace arc { | 16 namespace arc { |
15 | 17 |
16 // These enums are used to define the buckets for an enumerated UMA histogram | 18 // These enums are used to define the buckets for an enumerated UMA histogram |
17 // and need to be synced with histograms.xml | 19 // and need to be synced with histograms.xml |
18 enum class OptInActionType : int { | 20 enum class OptInActionType : int { |
19 OPTED_OUT = 0, // ARC was opted out by user. | 21 OPTED_OUT = 0, // ARC was opted out by user. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void UpdateOptInActionUMA(OptInActionType type); | 124 void UpdateOptInActionUMA(OptInActionType type); |
123 void UpdateOptInCancelUMA(OptInCancelReason reason); | 125 void UpdateOptInCancelUMA(OptInCancelReason reason); |
124 void UpdateEnabledStateUMA(bool enabled); | 126 void UpdateEnabledStateUMA(bool enabled); |
125 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); | 127 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); |
126 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, | 128 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, |
127 bool success, | 129 bool success, |
128 bool managed); | 130 bool managed); |
129 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); | 131 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); |
130 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); | 132 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); |
131 void UpdateAuthCheckinAttempts(int32_t num_attempts); | 133 void UpdateAuthCheckinAttempts(int32_t num_attempts); |
| 134 void UpdateAuthAccountCheckStatus(mojom::AccountCheckStatus status); |
132 | 135 |
133 // Outputs the stringified |result| to |os|. This is only for logging purposes. | 136 // Outputs the stringified |result| to |os|. This is only for logging purposes. |
134 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); | 137 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); |
135 | 138 |
136 } // namespace arc | 139 } // namespace arc |
137 | 140 |
138 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 141 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
OLD | NEW |