| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 404 |
| 405 // This should be called each time a page containing forms is loaded. | 405 // This should be called each time a page containing forms is loaded. |
| 406 static void LogIsAutofillEnabledAtPageLoad(bool enabled); | 406 static void LogIsAutofillEnabledAtPageLoad(bool enabled); |
| 407 | 407 |
| 408 // This should be called each time a new profile is launched. | 408 // This should be called each time a new profile is launched. |
| 409 static void LogIsAutofillEnabledAtStartup(bool enabled); | 409 static void LogIsAutofillEnabledAtStartup(bool enabled); |
| 410 | 410 |
| 411 // This should be called each time a new profile is launched. | 411 // This should be called each time a new profile is launched. |
| 412 static void LogStoredProfileCount(size_t num_profiles); | 412 static void LogStoredProfileCount(size_t num_profiles); |
| 413 | 413 |
| 414 // Log the number of profiles available when an autofillable form is |
| 415 // submitted. |
| 416 static void LogNumberOfProfilesAtFormSubmission(size_t num_profiles); |
| 417 |
| 414 // Log the number of Autofill suggestions presented to the user when filling a | 418 // Log the number of Autofill suggestions presented to the user when filling a |
| 415 // form. | 419 // form. |
| 416 static void LogAddressSuggestionsCount(size_t num_suggestions); | 420 static void LogAddressSuggestionsCount(size_t num_suggestions); |
| 417 | 421 |
| 418 private: | 422 private: |
| 419 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 423 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
| 420 }; | 424 }; |
| 421 | 425 |
| 422 } // namespace autofill | 426 } // namespace autofill |
| 423 | 427 |
| 424 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 428 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |