OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 18 matching lines...) Expand all Loading... |
29 ~TestAutofillClient() override; | 29 ~TestAutofillClient() override; |
30 | 30 |
31 // AutofillClient implementation. | 31 // AutofillClient implementation. |
32 PersonalDataManager* GetPersonalDataManager() override; | 32 PersonalDataManager* GetPersonalDataManager() override; |
33 scoped_refptr<AutofillWebDataService> GetDatabase() override; | 33 scoped_refptr<AutofillWebDataService> GetDatabase() override; |
34 PrefService* GetPrefs() override; | 34 PrefService* GetPrefs() override; |
35 syncer::SyncService* GetSyncService() override; | 35 syncer::SyncService* GetSyncService() override; |
36 IdentityProvider* GetIdentityProvider() override; | 36 IdentityProvider* GetIdentityProvider() override; |
37 rappor::RapporServiceImpl* GetRapporServiceImpl() override; | 37 rappor::RapporServiceImpl* GetRapporServiceImpl() override; |
38 ukm::UkmService* GetUkmService() override; | 38 ukm::UkmService* GetUkmService() override; |
| 39 #if !defined(OS_ANDROID) |
| 40 SaveCardBubbleController* GetSaveCardBubbleController() override; |
| 41 #endif |
39 void ShowAutofillSettings() override; | 42 void ShowAutofillSettings() override; |
40 void ShowUnmaskPrompt(const CreditCard& card, | 43 void ShowUnmaskPrompt(const CreditCard& card, |
41 UnmaskCardReason reason, | 44 UnmaskCardReason reason, |
42 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 45 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
43 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 46 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
44 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 47 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
45 const base::Closure& callback) override; | 48 const base::Closure& callback) override; |
46 void ConfirmSaveCreditCardToCloud( | 49 void ConfirmSaveCreditCardToCloud( |
47 const CreditCard& card, | 50 const CreditCard& card, |
48 std::unique_ptr<base::DictionaryValue> legal_message, | 51 std::unique_ptr<base::DictionaryValue> legal_message, |
| 52 bool should_cvc_be_requested, |
49 const base::Closure& callback) override; | 53 const base::Closure& callback) override; |
50 void ConfirmCreditCardFillAssist(const CreditCard& card, | 54 void ConfirmCreditCardFillAssist(const CreditCard& card, |
51 const base::Closure& callback) override; | 55 const base::Closure& callback) override; |
52 void LoadRiskData( | 56 void LoadRiskData( |
53 const base::Callback<void(const std::string&)>& callback) override; | 57 const base::Callback<void(const std::string&)>& callback) override; |
54 bool HasCreditCardScanFeature() override; | 58 bool HasCreditCardScanFeature() override; |
55 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 59 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
56 void ShowAutofillPopup( | 60 void ShowAutofillPopup( |
57 const gfx::RectF& element_bounds, | 61 const gfx::RectF& element_bounds, |
58 base::i18n::TextDirection text_direction, | 62 base::i18n::TextDirection text_direction, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_; | 103 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_; |
100 ukm::UkmServiceTestingHarness ukm_service_test_harness_; | 104 ukm::UkmServiceTestingHarness ukm_service_test_harness_; |
101 GURL form_origin_; | 105 GURL form_origin_; |
102 | 106 |
103 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); | 107 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); |
104 }; | 108 }; |
105 | 109 |
106 } // namespace autofill | 110 } // namespace autofill |
107 | 111 |
108 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 112 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
OLD | NEW |