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_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 25 matching lines...) Expand all Loading... |
36 #endif | 36 #endif |
37 | 37 |
38 // This define protects some debugging code (see DumpAutofillData). This | 38 // This define protects some debugging code (see DumpAutofillData). This |
39 // is here to make it easier to delete this code when the test is complete, | 39 // is here to make it easier to delete this code when the test is complete, |
40 // and to prevent adding the code on mobile where there is no desktop (the | 40 // and to prevent adding the code on mobile where there is no desktop (the |
41 // debug dump file is written to the desktop) or command-line flags to enable. | 41 // debug dump file is written to the desktop) or command-line flags to enable. |
42 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 42 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
43 #define ENABLE_FORM_DEBUG_DUMP | 43 #define ENABLE_FORM_DEBUG_DUMP |
44 #endif | 44 #endif |
45 | 45 |
46 class GURL; | |
47 | |
48 namespace gfx { | 46 namespace gfx { |
49 class RectF; | 47 class RectF; |
50 } | 48 } |
51 | 49 |
52 namespace user_prefs { | 50 namespace user_prefs { |
53 class PrefRegistrySyncable; | 51 class PrefRegistrySyncable; |
54 } | 52 } |
55 | 53 |
56 namespace autofill { | 54 namespace autofill { |
57 | 55 |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 501 |
504 std::deque<std::string> autofilled_form_signatures_; | 502 std::deque<std::string> autofilled_form_signatures_; |
505 | 503 |
506 // Handles queries and uploads to Autofill servers. Will be NULL if | 504 // Handles queries and uploads to Autofill servers. Will be NULL if |
507 // the download manager functionality is disabled. | 505 // the download manager functionality is disabled. |
508 std::unique_ptr<AutofillDownloadManager> download_manager_; | 506 std::unique_ptr<AutofillDownloadManager> download_manager_; |
509 | 507 |
510 // Handles single-field autocomplete form data. | 508 // Handles single-field autocomplete form data. |
511 std::unique_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 509 std::unique_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
512 | 510 |
| 511 // Utility for logging URL keyed metrics. |
| 512 std::unique_ptr<AutofillMetrics::UkmLogger> ukm_logger_; |
| 513 |
513 // Utilities for logging form events. | 514 // Utilities for logging form events. |
514 std::unique_ptr<AutofillMetrics::FormEventLogger> address_form_event_logger_; | 515 std::unique_ptr<AutofillMetrics::FormEventLogger> address_form_event_logger_; |
515 std::unique_ptr<AutofillMetrics::FormEventLogger> | 516 std::unique_ptr<AutofillMetrics::FormEventLogger> |
516 credit_card_form_event_logger_; | 517 credit_card_form_event_logger_; |
517 | 518 |
518 // Have we logged whether Autofill is enabled for this page load? | 519 // Have we logged whether Autofill is enabled for this page load? |
519 bool has_logged_autofill_enabled_; | 520 bool has_logged_autofill_enabled_; |
520 // Have we logged an address suggestions count metric for this page? | 521 // Have we logged an address suggestions count metric for this page? |
521 bool has_logged_address_suggestions_count_; | 522 bool has_logged_address_suggestions_count_; |
522 // Have we shown Autofill suggestions at least once? | 523 // Have we shown Autofill suggestions at least once? |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 624 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
624 OnLoadedServerPredictions_ResetManager); | 625 OnLoadedServerPredictions_ResetManager); |
625 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 626 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
626 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 627 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
627 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 628 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
628 }; | 629 }; |
629 | 630 |
630 } // namespace autofill | 631 } // namespace autofill |
631 | 632 |
632 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 633 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |