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 <string> | |
10 #include <vector> | 9 #include <vector> |
11 | 10 |
12 #include "base/callback.h" | 11 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
14 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
15 #include "base/macros.h" | 14 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
17 #include "components/autofill/core/browser/autofill_client.h" | 16 #include "components/autofill/core/browser/autofill_client.h" |
18 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" | 17 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" |
19 #include "components/zoom/zoom_observer.h" | 18 #include "components/zoom/zoom_observer.h" |
(...skipping 18 matching lines...) Expand all Loading... |
38 public content::WebContentsUserData<ChromeAutofillClient>, | 37 public content::WebContentsUserData<ChromeAutofillClient>, |
39 public content::WebContentsObserver, | 38 public content::WebContentsObserver, |
40 public zoom::ZoomObserver { | 39 public zoom::ZoomObserver { |
41 public: | 40 public: |
42 ~ChromeAutofillClient() override; | 41 ~ChromeAutofillClient() override; |
43 | 42 |
44 // AutofillClient: | 43 // AutofillClient: |
45 PersonalDataManager* GetPersonalDataManager() override; | 44 PersonalDataManager* GetPersonalDataManager() override; |
46 scoped_refptr<AutofillWebDataService> GetDatabase() override; | 45 scoped_refptr<AutofillWebDataService> GetDatabase() override; |
47 PrefService* GetPrefs() override; | 46 PrefService* GetPrefs() override; |
48 syncer::SyncService* GetSyncService() override; | 47 sync_driver::SyncService* GetSyncService() override; |
49 IdentityProvider* GetIdentityProvider() override; | 48 IdentityProvider* GetIdentityProvider() override; |
50 rappor::RapporService* GetRapporService() override; | 49 rappor::RapporService* GetRapporService() override; |
51 void ShowAutofillSettings() override; | 50 void ShowAutofillSettings() override; |
52 void ShowUnmaskPrompt(const CreditCard& card, | 51 void ShowUnmaskPrompt(const CreditCard& card, |
53 UnmaskCardReason reason, | 52 UnmaskCardReason reason, |
54 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 53 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
55 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 54 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
56 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 55 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
57 const base::Closure& callback) override; | 56 const base::Closure& callback) override; |
58 void ConfirmSaveCreditCardToCloud( | 57 void ConfirmSaveCreditCardToCloud( |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 // The identity provider, used for Payments integration. | 102 // The identity provider, used for Payments integration. |
104 std::unique_ptr<IdentityProvider> identity_provider_; | 103 std::unique_ptr<IdentityProvider> identity_provider_; |
105 | 104 |
106 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 105 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
107 }; | 106 }; |
108 | 107 |
109 } // namespace autofill | 108 } // namespace autofill |
110 | 109 |
111 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 110 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
OLD | NEW |