| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 public: | 39 public: |
| 40 ~ChromeAutofillClient() override; | 40 ~ChromeAutofillClient() override; |
| 41 | 41 |
| 42 // Called when the tab corresponding to |this| instance is activated. | 42 // Called when the tab corresponding to |this| instance is activated. |
| 43 void TabActivated(); | 43 void TabActivated(); |
| 44 | 44 |
| 45 // AutofillClient: | 45 // AutofillClient: |
| 46 PersonalDataManager* GetPersonalDataManager() override; | 46 PersonalDataManager* GetPersonalDataManager() override; |
| 47 scoped_refptr<AutofillWebDataService> GetDatabase() override; | 47 scoped_refptr<AutofillWebDataService> GetDatabase() override; |
| 48 PrefService* GetPrefs() override; | 48 PrefService* GetPrefs() override; |
| 49 IdentityProvider* GetIdentityProvider() override; |
| 49 void HideRequestAutocompleteDialog() override; | 50 void HideRequestAutocompleteDialog() override; |
| 50 void ShowAutofillSettings() override; | 51 void ShowAutofillSettings() override; |
| 51 void ShowUnmaskPrompt(const CreditCard& card, | 52 void ShowUnmaskPrompt(const CreditCard& card, |
| 52 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 53 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
| 53 void OnUnmaskVerificationResult(bool success) override; | 54 void OnUnmaskVerificationResult(bool success) override; |
| 54 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; | 55 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; |
| 55 bool HasCreditCardScanFeature() override; | 56 bool HasCreditCardScanFeature() override; |
| 56 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 57 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
| 57 void ShowRequestAutocompleteDialog( | 58 void ShowRequestAutocompleteDialog( |
| 58 const FormData& form, | 59 const FormData& form, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // The class of this member must remain a forward declaration, even in the | 123 // The class of this member must remain a forward declaration, even in the |
| 123 // .cc implementation file, since the class is defined in a Mac-only | 124 // .cc implementation file, since the class is defined in a Mac-only |
| 124 // implementation file. This means that the pointer cannot be wrapped in a | 125 // implementation file. This means that the pointer cannot be wrapped in a |
| 125 // scoped_ptr. | 126 // scoped_ptr. |
| 126 AutofillKeystoneBridgeWrapper* bridge_wrapper_; | 127 AutofillKeystoneBridgeWrapper* bridge_wrapper_; |
| 127 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 128 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
| 128 | 129 |
| 129 // The last render frame that called requestAutocomplete. | 130 // The last render frame that called requestAutocomplete. |
| 130 content::RenderFrameHost* last_rfh_to_rac_; | 131 content::RenderFrameHost* last_rfh_to_rac_; |
| 131 | 132 |
| 133 // The identity provider, used for Wallet integration. |
| 134 scoped_ptr<IdentityProvider> identity_provider_; |
| 135 |
| 132 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 136 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
| 133 }; | 137 }; |
| 134 | 138 |
| 135 } // namespace autofill | 139 } // namespace autofill |
| 136 | 140 |
| 137 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 141 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| OLD | NEW |