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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 // and submission. | 443 // and submission. |
444 static void LogFormFillDurationFromInteractionWithAutofill( | 444 static void LogFormFillDurationFromInteractionWithAutofill( |
445 const base::TimeDelta& duration); | 445 const base::TimeDelta& duration); |
446 | 446 |
447 // This should be called when a fillable form that has not been Autofilled is | 447 // This should be called when a fillable form that has not been Autofilled is |
448 // submitted. |duration| should be the time elapsed between the initial form | 448 // submitted. |duration| should be the time elapsed between the initial form |
449 // interaction and submission. | 449 // interaction and submission. |
450 static void LogFormFillDurationFromInteractionWithoutAutofill( | 450 static void LogFormFillDurationFromInteractionWithoutAutofill( |
451 const base::TimeDelta& duration); | 451 const base::TimeDelta& duration); |
452 | 452 |
| 453 // This should be called each time a form is about to be submitted. |
| 454 static void LogIsFormUserSubmitted(bool user_submitted); |
| 455 |
453 // This should be called each time a page containing forms is loaded. | 456 // This should be called each time a page containing forms is loaded. |
454 static void LogIsAutofillEnabledAtPageLoad(bool enabled); | 457 static void LogIsAutofillEnabledAtPageLoad(bool enabled); |
455 | 458 |
456 // This should be called each time a new profile is launched. | 459 // This should be called each time a new profile is launched. |
457 static void LogIsAutofillEnabledAtStartup(bool enabled); | 460 static void LogIsAutofillEnabledAtStartup(bool enabled); |
458 | 461 |
459 // This should be called each time a new profile is launched. | 462 // This should be called each time a new profile is launched. |
460 static void LogStoredProfileCount(size_t num_profiles); | 463 static void LogStoredProfileCount(size_t num_profiles); |
461 | 464 |
462 // Log the number of profiles available when an autofillable form is | 465 // Log the number of profiles available when an autofillable form is |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 bool logged_suggestion_filled_was_masked_server_card_; | 514 bool logged_suggestion_filled_was_masked_server_card_; |
512 }; | 515 }; |
513 | 516 |
514 private: | 517 private: |
515 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 518 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
516 }; | 519 }; |
517 | 520 |
518 } // namespace autofill | 521 } // namespace autofill |
519 | 522 |
520 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 523 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |