| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 // Logs the network request time of Wallet API calls. | 383 // Logs the network request time of Wallet API calls. |
| 384 virtual void LogWalletApiCallDuration( | 384 virtual void LogWalletApiCallDuration( |
| 385 WalletApiCallMetric metric, | 385 WalletApiCallMetric metric, |
| 386 const base::TimeDelta& duration) const; | 386 const base::TimeDelta& duration) const; |
| 387 | 387 |
| 388 // Logs |required_action| to the required actions histogram. | 388 // Logs |required_action| to the required actions histogram. |
| 389 virtual void LogWalletRequiredActionMetric( | 389 virtual void LogWalletRequiredActionMetric( |
| 390 WalletRequiredActionMetric required_action) const; | 390 WalletRequiredActionMetric required_action) const; |
| 391 | 391 |
| 392 // Logs HTTP response codes recieved by wallet client. | |
| 393 virtual void LogWalletResponseCode(int response_code) const; | |
| 394 | |
| 395 // This should be called when a form that has been Autofilled is submitted. | 392 // This should be called when a form that has been Autofilled is submitted. |
| 396 // |duration| should be the time elapsed between form load and submission. | 393 // |duration| should be the time elapsed between form load and submission. |
| 397 virtual void LogFormFillDurationFromLoadWithAutofill( | 394 virtual void LogFormFillDurationFromLoadWithAutofill( |
| 398 const base::TimeDelta& duration) const; | 395 const base::TimeDelta& duration) const; |
| 399 | 396 |
| 400 // This should be called when a fillable form that has not been Autofilled is | 397 // This should be called when a fillable form that has not been Autofilled is |
| 401 // submitted. |duration| should be the time elapsed between form load and | 398 // submitted. |duration| should be the time elapsed between form load and |
| 402 // submission. | 399 // submission. |
| 403 virtual void LogFormFillDurationFromLoadWithoutAutofill( | 400 virtual void LogFormFillDurationFromLoadWithoutAutofill( |
| 404 const base::TimeDelta& duration) const; | 401 const base::TimeDelta& duration) const; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 virtual void LogServerExperimentIdForUpload( | 433 virtual void LogServerExperimentIdForUpload( |
| 437 const std::string& experiment_id) const; | 434 const std::string& experiment_id) const; |
| 438 | 435 |
| 439 private: | 436 private: |
| 440 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); | 437 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); |
| 441 }; | 438 }; |
| 442 | 439 |
| 443 } // namespace autofill | 440 } // namespace autofill |
| 444 | 441 |
| 445 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 442 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |