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 |
392 // This should be called when a form that has been Autofilled is submitted. | 395 // This should be called when a form that has been Autofilled is submitted. |
393 // |duration| should be the time elapsed between form load and submission. | 396 // |duration| should be the time elapsed between form load and submission. |
394 virtual void LogFormFillDurationFromLoadWithAutofill( | 397 virtual void LogFormFillDurationFromLoadWithAutofill( |
395 const base::TimeDelta& duration) const; | 398 const base::TimeDelta& duration) const; |
396 | 399 |
397 // This should be called when a fillable form that has not been Autofilled is | 400 // This should be called when a fillable form that has not been Autofilled is |
398 // submitted. |duration| should be the time elapsed between form load and | 401 // submitted. |duration| should be the time elapsed between form load and |
399 // submission. | 402 // submission. |
400 virtual void LogFormFillDurationFromLoadWithoutAutofill( | 403 virtual void LogFormFillDurationFromLoadWithoutAutofill( |
401 const base::TimeDelta& duration) const; | 404 const base::TimeDelta& duration) const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 virtual void LogServerExperimentIdForUpload( | 436 virtual void LogServerExperimentIdForUpload( |
434 const std::string& experiment_id) const; | 437 const std::string& experiment_id) const; |
435 | 438 |
436 private: | 439 private: |
437 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); | 440 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); |
438 }; | 441 }; |
439 | 442 |
440 } // namespace autofill | 443 } // namespace autofill |
441 | 444 |
442 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 445 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |