Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 NUM_USER_HAPPINESS_METRICS, | 286 NUM_USER_HAPPINESS_METRICS, |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 // For measuring the network request time of various Wallet API calls. See | 289 // For measuring the network request time of various Wallet API calls. See |
| 290 // WalletClient::RequestType. | 290 // WalletClient::RequestType. |
| 291 enum WalletApiCallMetric { | 291 enum WalletApiCallMetric { |
| 292 UNKNOWN_API_CALL, // Catch all. Should never be used. | 292 UNKNOWN_API_CALL, // Catch all. Should never be used. |
| 293 ACCEPT_LEGAL_DOCUMENTS, | 293 ACCEPT_LEGAL_DOCUMENTS, |
| 294 AUTHENTICATE_INSTRUMENT, | 294 AUTHENTICATE_INSTRUMENT, |
| 295 GET_FULL_WALLET, | 295 GET_FULL_WALLET, |
| 296 GET_WALLET_ITEMS, | 296 GET_WALLET_ITEMS, |
|
Dan Beam
2013/07/02 21:03:11
nit: comment about dead enum members
ahutter
2013/07/02 21:15:56
Done.
| |
| 297 SAVE_ADDRESS, | 297 SEND_STATUS = 8, |
| 298 SAVE_INSTRUMENT, | 298 SAVE_TO_WALLET = 11, |
| 299 SAVE_INSTRUMENT_AND_ADDRESS, | |
| 300 SEND_STATUS, | |
| 301 UPDATE_ADDRESS, | |
| 302 UPDATE_INSTRUMENT, | |
| 303 }; | 299 }; |
| 304 | 300 |
| 305 // For measuring the frequency of errors while communicating with the Wallet | 301 // For measuring the frequency of errors while communicating with the Wallet |
| 306 // server. | 302 // server. |
| 307 enum WalletErrorMetric { | 303 enum WalletErrorMetric { |
| 308 // Baseline metric: Issued a request to the Wallet server. | 304 // Baseline metric: Issued a request to the Wallet server. |
| 309 WALLET_ERROR_BASELINE_ISSUED_REQUEST = 0, | 305 WALLET_ERROR_BASELINE_ISSUED_REQUEST = 0, |
| 310 // A fatal error occured while communicating with the Wallet server. This | 306 // A fatal error occured while communicating with the Wallet server. This |
| 311 // value has been deprecated. | 307 // value has been deprecated. |
| 312 WALLET_FATAL_ERROR_DEPRECATED, | 308 WALLET_FATAL_ERROR_DEPRECATED, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 502 virtual void LogServerExperimentIdForUpload( | 498 virtual void LogServerExperimentIdForUpload( |
| 503 const std::string& experiment_id) const; | 499 const std::string& experiment_id) const; |
| 504 | 500 |
| 505 private: | 501 private: |
| 506 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); | 502 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); |
| 507 }; | 503 }; |
| 508 | 504 |
| 509 } // namespace autofill | 505 } // namespace autofill |
| 510 | 506 |
| 511 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 507 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |