| 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 11 matching lines...) Expand all Loading... |
| 22 namespace content { | 22 namespace content { |
| 23 struct FrameNavigateParams; | 23 struct FrameNavigateParams; |
| 24 struct LoadCommittedDetails; | 24 struct LoadCommittedDetails; |
| 25 class WebContents; | 25 class WebContents; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace autofill { | 28 namespace autofill { |
| 29 | 29 |
| 30 class AutofillPopupControllerImpl; | 30 class AutofillPopupControllerImpl; |
| 31 class CreditCardScannerController; | 31 class CreditCardScannerController; |
| 32 class AutofillProfile; |
| 33 class CreditCard; |
| 32 struct FormData; | 34 struct FormData; |
| 33 | 35 |
| 34 // Chrome implementation of AutofillClient. | 36 // Chrome implementation of AutofillClient. |
| 35 class ChromeAutofillClient | 37 class ChromeAutofillClient |
| 36 : public AutofillClient, | 38 : public AutofillClient, |
| 37 public content::WebContentsUserData<ChromeAutofillClient>, | 39 public content::WebContentsUserData<ChromeAutofillClient>, |
| 38 public content::WebContentsObserver, | 40 public content::WebContentsObserver, |
| 39 public zoom::ZoomObserver { | 41 public zoom::ZoomObserver { |
| 40 public: | 42 public: |
| 41 ~ChromeAutofillClient() override; | 43 ~ChromeAutofillClient() override; |
| 42 | 44 |
| 43 // AutofillClient: | 45 // AutofillClient: |
| 44 PersonalDataManager* GetPersonalDataManager() override; | 46 PersonalDataManager* GetPersonalDataManager() override; |
| 45 scoped_refptr<AutofillWebDataService> GetDatabase() override; | 47 scoped_refptr<AutofillWebDataService> GetDatabase() override; |
| 46 PrefService* GetPrefs() override; | 48 PrefService* GetPrefs() override; |
| 47 sync_driver::SyncService* GetSyncService() override; | 49 sync_driver::SyncService* GetSyncService() override; |
| 48 IdentityProvider* GetIdentityProvider() override; | 50 IdentityProvider* GetIdentityProvider() override; |
| 49 rappor::RapporService* GetRapporService() override; | 51 rappor::RapporService* GetRapporService() override; |
| 50 void ShowAutofillSettings() override; | 52 void ShowAutofillSettings() override; |
| 51 void ShowUnmaskPrompt(const CreditCard& card, | 53 void ShowUnmaskPrompt(const CreditCard& card, |
| 52 UnmaskCardReason reason, | 54 UnmaskCardReason reason, |
| 53 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 55 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
| 54 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 56 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
| 55 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 57 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
| 56 const base::Closure& callback) override; | 58 const base::Closure& callback) override; |
| 57 void ConfirmSaveCreditCardToCloud( | 59 void ConfirmSaveCreditCardToCloud( |
| 58 const CreditCard& card, | 60 const CreditCard& card, |
| 59 std::unique_ptr<base::DictionaryValue> legal_message, | 61 std::unique_ptr<base::DictionaryValue> legal_message, |
| 60 const base::Closure& callback) override; | 62 const base::Closure& callback) override; |
| 63 void ConfirmCreditCardFillAssist(const CreditCard& card, |
| 64 const base::Closure& callback) override; |
| 61 void LoadRiskData( | 65 void LoadRiskData( |
| 62 const base::Callback<void(const std::string&)>& callback) override; | 66 const base::Callback<void(const std::string&)>& callback) override; |
| 63 bool HasCreditCardScanFeature() override; | 67 bool HasCreditCardScanFeature() override; |
| 64 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 68 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
| 65 void ShowAutofillPopup( | 69 void ShowAutofillPopup( |
| 66 const gfx::RectF& element_bounds, | 70 const gfx::RectF& element_bounds, |
| 67 base::i18n::TextDirection text_direction, | 71 base::i18n::TextDirection text_direction, |
| 68 const std::vector<autofill::Suggestion>& suggestions, | 72 const std::vector<autofill::Suggestion>& suggestions, |
| 69 base::WeakPtr<AutofillPopupDelegate> delegate) override; | 73 base::WeakPtr<AutofillPopupDelegate> delegate) override; |
| 70 void UpdateAutofillPopupDataListValues( | 74 void UpdateAutofillPopupDataListValues( |
| (...skipping 28 matching lines...) Expand all Loading... |
| 99 | 103 |
| 100 // The identity provider, used for Payments integration. | 104 // The identity provider, used for Payments integration. |
| 101 std::unique_ptr<IdentityProvider> identity_provider_; | 105 std::unique_ptr<IdentityProvider> identity_provider_; |
| 102 | 106 |
| 103 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 107 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
| 104 }; | 108 }; |
| 105 | 109 |
| 106 } // namespace autofill | 110 } // namespace autofill |
| 107 | 111 |
| 108 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 112 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| OLD | NEW |