| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 416 |
| 417 // This should be called each time a page containing forms is loaded. | 417 // This should be called each time a page containing forms is loaded. |
| 418 static void LogIsAutofillEnabledAtPageLoad(bool enabled); | 418 static void LogIsAutofillEnabledAtPageLoad(bool enabled); |
| 419 | 419 |
| 420 // This should be called each time a new profile is launched. | 420 // This should be called each time a new profile is launched. |
| 421 static void LogIsAutofillEnabledAtStartup(bool enabled); | 421 static void LogIsAutofillEnabledAtStartup(bool enabled); |
| 422 | 422 |
| 423 // This should be called each time a new profile is launched. | 423 // This should be called each time a new profile is launched. |
| 424 static void LogStoredProfileCount(size_t num_profiles); | 424 static void LogStoredProfileCount(size_t num_profiles); |
| 425 | 425 |
| 426 // Log the number of profiles available when an autofillable form is |
| 427 // submitted. |
| 428 static void LogNumberOfProfilesAtAutofillableFormSubmission( |
| 429 size_t num_profiles); |
| 430 |
| 426 // Log the number of Autofill suggestions presented to the user when filling a | 431 // Log the number of Autofill suggestions presented to the user when filling a |
| 427 // form. | 432 // form. |
| 428 static void LogAddressSuggestionsCount(size_t num_suggestions); | 433 static void LogAddressSuggestionsCount(size_t num_suggestions); |
| 429 | 434 |
| 430 // Utility to autofill form events in the relevant histograms depending on | 435 // Utility to autofill form events in the relevant histograms depending on |
| 431 // the presence of server and/or local data. | 436 // the presence of server and/or local data. |
| 432 class FormEventLogger { | 437 class FormEventLogger { |
| 433 public: | 438 public: |
| 434 FormEventLogger(bool is_for_credit_card); | 439 FormEventLogger(bool is_for_credit_card); |
| 435 | 440 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 456 bool has_logged_interacted_; | 461 bool has_logged_interacted_; |
| 457 }; | 462 }; |
| 458 | 463 |
| 459 private: | 464 private: |
| 460 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 465 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
| 461 }; | 466 }; |
| 462 | 467 |
| 463 } // namespace autofill | 468 } // namespace autofill |
| 464 | 469 |
| 465 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 470 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |