| 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 14 matching lines...) Expand all Loading... |
| 25 #include "components/autofill/core/browser/autofill_download_manager.h" | 25 #include "components/autofill/core/browser/autofill_download_manager.h" |
| 26 #include "components/autofill/core/browser/autofill_driver.h" | 26 #include "components/autofill/core/browser/autofill_driver.h" |
| 27 #include "components/autofill/core/browser/autofill_metrics.h" | 27 #include "components/autofill/core/browser/autofill_metrics.h" |
| 28 #include "components/autofill/core/browser/card_unmask_delegate.h" | 28 #include "components/autofill/core/browser/card_unmask_delegate.h" |
| 29 #include "components/autofill/core/browser/form_structure.h" | 29 #include "components/autofill/core/browser/form_structure.h" |
| 30 #include "components/autofill/core/browser/payments/full_card_request.h" | 30 #include "components/autofill/core/browser/payments/full_card_request.h" |
| 31 #include "components/autofill/core/browser/payments/payments_client.h" | 31 #include "components/autofill/core/browser/payments/payments_client.h" |
| 32 #include "components/autofill/core/browser/personal_data_manager.h" | 32 #include "components/autofill/core/browser/personal_data_manager.h" |
| 33 #include "components/autofill/core/common/form_data.h" | 33 #include "components/autofill/core/common/form_data.h" |
| 34 | 34 |
| 35 #if defined(OS_ANDROID) | 35 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 36 #include "components/autofill/core/browser/autofill_assistant.h" | 36 #include "components/autofill/core/browser/autofill_assistant.h" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 // This define protects some debugging code (see DumpAutofillData). This | 39 // This define protects some debugging code (see DumpAutofillData). This |
| 40 // is here to make it easier to delete this code when the test is complete, | 40 // is here to make it easier to delete this code when the test is complete, |
| 41 // and to prevent adding the code on mobile where there is no desktop (the | 41 // and to prevent adding the code on mobile where there is no desktop (the |
| 42 // debug dump file is written to the desktop) or command-line flags to enable. | 42 // debug dump file is written to the desktop) or command-line flags to enable. |
| 43 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 43 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
| 44 #define ENABLE_FORM_DEBUG_DUMP | 44 #define ENABLE_FORM_DEBUG_DUMP |
| 45 #endif | 45 #endif |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 mutable std::map<std::string, int> backend_to_int_map_; | 531 mutable std::map<std::string, int> backend_to_int_map_; |
| 532 mutable std::map<int, std::string> int_to_backend_map_; | 532 mutable std::map<int, std::string> int_to_backend_map_; |
| 533 | 533 |
| 534 // Delegate to perform external processing (display, selection) on | 534 // Delegate to perform external processing (display, selection) on |
| 535 // our behalf. Weak. | 535 // our behalf. Weak. |
| 536 AutofillExternalDelegate* external_delegate_; | 536 AutofillExternalDelegate* external_delegate_; |
| 537 | 537 |
| 538 // Delegate used in test to get notifications on certain events. | 538 // Delegate used in test to get notifications on certain events. |
| 539 AutofillManagerTestDelegate* test_delegate_; | 539 AutofillManagerTestDelegate* test_delegate_; |
| 540 | 540 |
| 541 #if defined(OS_ANDROID) | 541 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 542 AutofillAssistant autofill_assistant_; | 542 AutofillAssistant autofill_assistant_; |
| 543 #endif | 543 #endif |
| 544 | 544 |
| 545 base::WeakPtrFactory<AutofillManager> weak_ptr_factory_; | 545 base::WeakPtrFactory<AutofillManager> weak_ptr_factory_; |
| 546 | 546 |
| 547 friend class AutofillManagerTest; | 547 friend class AutofillManagerTest; |
| 548 friend class FormStructureBrowserTest; | 548 friend class FormStructureBrowserTest; |
| 549 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 549 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 550 DeterminePossibleFieldTypesForUpload); | 550 DeterminePossibleFieldTypesForUpload); |
| 551 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 551 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 609 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 610 DontSaveCvcInAutocompleteHistory); | 610 DontSaveCvcInAutocompleteHistory); |
| 611 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 611 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
| 612 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 612 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 613 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 613 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 614 }; | 614 }; |
| 615 | 615 |
| 616 } // namespace autofill | 616 } // namespace autofill |
| 617 | 617 |
| 618 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 618 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |