OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ |
6 #define IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ | 6 #define IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
| 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "components/autofill/core/browser/autofill_client.h" | 14 #include "components/autofill/core/browser/autofill_client.h" |
14 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" | 15 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" |
15 #include "components/autofill/ios/browser/autofill_client_ios_bridge.h" | 16 #include "components/autofill/ios/browser/autofill_client_ios_bridge.h" |
16 | 17 |
17 class IdentityProvider; | 18 class IdentityProvider; |
18 | 19 |
19 namespace infobars { | 20 namespace infobars { |
20 class InfoBarManager; | 21 class InfoBarManager; |
21 } | 22 } |
22 | 23 |
23 namespace ios { | 24 namespace ios { |
24 class ChromeBrowserState; | 25 class ChromeBrowserState; |
25 } | 26 } |
26 | 27 |
27 namespace password_manager { | 28 namespace password_manager { |
28 class PasswordGenerationManager; | 29 class PasswordGenerationManager; |
29 } | 30 } |
30 | 31 |
31 namespace sync_driver { | 32 namespace syncer { |
32 class SyncService; | 33 class SyncService; |
33 } | 34 } |
34 | 35 |
35 namespace autofill { | 36 namespace autofill { |
36 | 37 |
37 class PersonalDataManager; | 38 class PersonalDataManager; |
38 | 39 |
39 // iOS implementation of AutofillClient. | 40 // iOS implementation of AutofillClient. |
40 // TODO(dconnelly): Split this up, as it collects functionality that doesn't | 41 // TODO(dconnelly): Split this up, as it collects functionality that doesn't |
41 // necessarily fit together on iOS. http://crbug.com/432487. | 42 // necessarily fit together on iOS. http://crbug.com/432487. |
42 class AutofillClientIOS : public AutofillClient { | 43 class AutofillClientIOS : public AutofillClient { |
43 public: | 44 public: |
44 AutofillClientIOS( | 45 AutofillClientIOS( |
45 ios::ChromeBrowserState* browser_state, | 46 ios::ChromeBrowserState* browser_state, |
46 infobars::InfoBarManager* infobar_manager, | 47 infobars::InfoBarManager* infobar_manager, |
47 id<AutofillClientIOSBridge> bridge, | 48 id<AutofillClientIOSBridge> bridge, |
48 password_manager::PasswordGenerationManager* password_generation_manager, | 49 password_manager::PasswordGenerationManager* password_generation_manager, |
49 std::unique_ptr<IdentityProvider> identity_provider); | 50 std::unique_ptr<IdentityProvider> identity_provider); |
50 ~AutofillClientIOS() override; | 51 ~AutofillClientIOS() override; |
51 | 52 |
52 // AutofillClient implementation. | 53 // AutofillClient implementation. |
53 PersonalDataManager* GetPersonalDataManager() override; | 54 PersonalDataManager* GetPersonalDataManager() override; |
54 PrefService* GetPrefs() override; | 55 PrefService* GetPrefs() override; |
55 sync_driver::SyncService* GetSyncService() override; | 56 syncer::SyncService* GetSyncService() override; |
56 IdentityProvider* GetIdentityProvider() override; | 57 IdentityProvider* GetIdentityProvider() override; |
57 rappor::RapporService* GetRapporService() override; | 58 rappor::RapporService* GetRapporService() override; |
58 void ShowAutofillSettings() override; | 59 void ShowAutofillSettings() override; |
59 void ShowUnmaskPrompt(const CreditCard& card, | 60 void ShowUnmaskPrompt(const CreditCard& card, |
60 UnmaskCardReason reason, | 61 UnmaskCardReason reason, |
61 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 62 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
62 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 63 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
63 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 64 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
64 const base::Closure& callback) override; | 65 const base::Closure& callback) override; |
65 void ConfirmSaveCreditCardToCloud( | 66 void ConfirmSaveCreditCardToCloud( |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 password_manager::PasswordGenerationManager* password_generation_manager_; | 101 password_manager::PasswordGenerationManager* password_generation_manager_; |
101 std::unique_ptr<IdentityProvider> identity_provider_; | 102 std::unique_ptr<IdentityProvider> identity_provider_; |
102 CardUnmaskPromptControllerImpl unmask_controller_; | 103 CardUnmaskPromptControllerImpl unmask_controller_; |
103 | 104 |
104 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS); | 105 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace autofill | 108 } // namespace autofill |
108 | 109 |
109 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ | 110 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ |
OLD | NEW |