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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 280 // Same as above, but only logged once per page load. | 280 // Same as above, but only logged once per page load. |
| 281 USER_DID_AUTOFILL_ONCE, | 281 USER_DID_AUTOFILL_ONCE, |
| 282 // User edited a previously autofilled field. | 282 // User edited a previously autofilled field. |
| 283 USER_DID_EDIT_AUTOFILLED_FIELD, | 283 USER_DID_EDIT_AUTOFILLED_FIELD, |
| 284 // Same as above, but only logged once per page load. | 284 // Same as above, but only logged once per page load. |
| 285 USER_DID_EDIT_AUTOFILLED_FIELD_ONCE, | 285 USER_DID_EDIT_AUTOFILLED_FIELD_ONCE, |
| 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. A number of members of this enum have been |
| 291 // deprecated and removed. | |
|
Ilya Sherman
2013/07/02 22:31:20
nit: I'd omit this second sentence, since it's not
| |
| 291 enum WalletApiCallMetric { | 292 enum WalletApiCallMetric { |
| 292 UNKNOWN_API_CALL, // Catch all. Should never be used. | 293 UNKNOWN_API_CALL, // Catch all. Should never be used. |
| 293 ACCEPT_LEGAL_DOCUMENTS, | 294 ACCEPT_LEGAL_DOCUMENTS, |
| 294 AUTHENTICATE_INSTRUMENT, | 295 AUTHENTICATE_INSTRUMENT, |
| 295 GET_FULL_WALLET, | 296 GET_FULL_WALLET, |
| 296 GET_WALLET_ITEMS, | 297 GET_WALLET_ITEMS, |
| 297 SAVE_ADDRESS, | |
| 298 SAVE_INSTRUMENT, | |
| 299 SAVE_INSTRUMENT_AND_ADDRESS, | |
| 300 SEND_STATUS, | 298 SEND_STATUS, |
| 301 UPDATE_ADDRESS, | 299 SAVE_TO_WALLET, |
| 302 UPDATE_INSTRUMENT, | |
| 303 }; | 300 }; |
| 304 | 301 |
| 305 // For measuring the frequency of errors while communicating with the Wallet | 302 // For measuring the frequency of errors while communicating with the Wallet |
| 306 // server. | 303 // server. |
| 307 enum WalletErrorMetric { | 304 enum WalletErrorMetric { |
| 308 // Baseline metric: Issued a request to the Wallet server. | 305 // Baseline metric: Issued a request to the Wallet server. |
| 309 WALLET_ERROR_BASELINE_ISSUED_REQUEST = 0, | 306 WALLET_ERROR_BASELINE_ISSUED_REQUEST = 0, |
| 310 // A fatal error occured while communicating with the Wallet server. This | 307 // A fatal error occured while communicating with the Wallet server. This |
| 311 // value has been deprecated. | 308 // value has been deprecated. |
| 312 WALLET_FATAL_ERROR_DEPRECATED, | 309 WALLET_FATAL_ERROR_DEPRECATED, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 502 virtual void LogServerExperimentIdForUpload( | 499 virtual void LogServerExperimentIdForUpload( |
| 503 const std::string& experiment_id) const; | 500 const std::string& experiment_id) const; |
| 504 | 501 |
| 505 private: | 502 private: |
| 506 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); | 503 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); |
| 507 }; | 504 }; |
| 508 | 505 |
| 509 } // namespace autofill | 506 } // namespace autofill |
| 510 | 507 |
| 511 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 508 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |