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. | |
| 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 DEPRECATED_SAVE_ADDRESS, |
| 298 SAVE_INSTRUMENT, | 299 DEPRECATED_SAVE_INSTRUMENT, |
| 299 SAVE_INSTRUMENT_AND_ADDRESS, | 300 DEPRECATED_SAVE_INSTRUMENT_AND_ADDRESS, |
| 300 SEND_STATUS, | 301 SEND_STATUS, |
| 301 UPDATE_ADDRESS, | 302 DEPRECATED_UPDATE_ADDRESS, |
| 302 UPDATE_INSTRUMENT, | 303 DEPRECATED_UPDATE_INSTRUMENT, |
|
Ilya Sherman
2013/07/02 22:17:45
Actually, I'm realizing that these constants are o
ahutter
2013/07/02 22:26:14
Np. Done.
| |
| 304 SAVE_TO_WALLET, | |
| 303 }; | 305 }; |
| 304 | 306 |
| 305 // For measuring the frequency of errors while communicating with the Wallet | 307 // For measuring the frequency of errors while communicating with the Wallet |
| 306 // server. | 308 // server. |
| 307 enum WalletErrorMetric { | 309 enum WalletErrorMetric { |
| 308 // Baseline metric: Issued a request to the Wallet server. | 310 // Baseline metric: Issued a request to the Wallet server. |
| 309 WALLET_ERROR_BASELINE_ISSUED_REQUEST = 0, | 311 WALLET_ERROR_BASELINE_ISSUED_REQUEST = 0, |
| 310 // A fatal error occured while communicating with the Wallet server. This | 312 // A fatal error occured while communicating with the Wallet server. This |
| 311 // value has been deprecated. | 313 // value has been deprecated. |
| 312 WALLET_FATAL_ERROR_DEPRECATED, | 314 WALLET_FATAL_ERROR_DEPRECATED, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 502 virtual void LogServerExperimentIdForUpload( | 504 virtual void LogServerExperimentIdForUpload( |
| 503 const std::string& experiment_id) const; | 505 const std::string& experiment_id) const; |
| 504 | 506 |
| 505 private: | 507 private: |
| 506 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); | 508 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); |
| 507 }; | 509 }; |
| 508 | 510 |
| 509 } // namespace autofill | 511 } // namespace autofill |
| 510 | 512 |
| 511 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 513 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |