| 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 CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void ShowUnmaskPrompt(const CreditCard& card, | 51 void ShowUnmaskPrompt(const CreditCard& card, |
| 52 UnmaskCardReason reason, | 52 UnmaskCardReason reason, |
| 53 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 53 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
| 54 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 54 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
| 55 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 55 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
| 56 const base::Closure& callback) override; | 56 const base::Closure& callback) override; |
| 57 void ConfirmSaveCreditCardToCloud( | 57 void ConfirmSaveCreditCardToCloud( |
| 58 const CreditCard& card, | 58 const CreditCard& card, |
| 59 std::unique_ptr<base::DictionaryValue> legal_message, | 59 std::unique_ptr<base::DictionaryValue> legal_message, |
| 60 const base::Closure& callback) override; | 60 const base::Closure& callback) override; |
| 61 void ConfirmCreditCardFillAssist(const CreditCard& card, |
| 62 const base::Closure& callback) override; |
| 63 #if defined(OS_ANDROID) |
| 64 std::unique_ptr<infobars::InfoBar> CreateCreditCardFillingInfoBar( |
| 65 std::unique_ptr<AutofillCreditCardFillingInfoBarDelegateMobile> delegate) |
| 66 override; |
| 67 #endif |
| 61 void LoadRiskData( | 68 void LoadRiskData( |
| 62 const base::Callback<void(const std::string&)>& callback) override; | 69 const base::Callback<void(const std::string&)>& callback) override; |
| 63 bool HasCreditCardScanFeature() override; | 70 bool HasCreditCardScanFeature() override; |
| 64 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 71 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
| 65 void ShowAutofillPopup( | 72 void ShowAutofillPopup( |
| 66 const gfx::RectF& element_bounds, | 73 const gfx::RectF& element_bounds, |
| 67 base::i18n::TextDirection text_direction, | 74 base::i18n::TextDirection text_direction, |
| 68 const std::vector<autofill::Suggestion>& suggestions, | 75 const std::vector<autofill::Suggestion>& suggestions, |
| 69 base::WeakPtr<AutofillPopupDelegate> delegate) override; | 76 base::WeakPtr<AutofillPopupDelegate> delegate) override; |
| 70 void UpdateAutofillPopupDataListValues( | 77 void UpdateAutofillPopupDataListValues( |
| (...skipping 22 matching lines...) Expand all Loading... |
| 93 private: | 100 private: |
| 94 explicit ChromeAutofillClient(content::WebContents* web_contents); | 101 explicit ChromeAutofillClient(content::WebContents* web_contents); |
| 95 friend class content::WebContentsUserData<ChromeAutofillClient>; | 102 friend class content::WebContentsUserData<ChromeAutofillClient>; |
| 96 | 103 |
| 97 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 104 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
| 98 CardUnmaskPromptControllerImpl unmask_controller_; | 105 CardUnmaskPromptControllerImpl unmask_controller_; |
| 99 | 106 |
| 100 // The identity provider, used for Payments integration. | 107 // The identity provider, used for Payments integration. |
| 101 std::unique_ptr<IdentityProvider> identity_provider_; | 108 std::unique_ptr<IdentityProvider> identity_provider_; |
| 102 | 109 |
| 110 base::WeakPtrFactory<ChromeAutofillClient> weak_ptr_factory_; |
| 111 |
| 103 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 112 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
| 104 }; | 113 }; |
| 105 | 114 |
| 106 } // namespace autofill | 115 } // namespace autofill |
| 107 | 116 |
| 108 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 117 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| OLD | NEW |