Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Side by Side Diff: ios/chrome/browser/ui/autofill/autofill_client_ios.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
10 #include <vector> 9 #include <vector>
11 10
12 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
13 #include "base/macros.h" 12 #include "base/macros.h"
14 #include "components/autofill/core/browser/autofill_client.h" 13 #include "components/autofill/core/browser/autofill_client.h"
15 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl .h" 14 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl .h"
16 #include "components/autofill/ios/browser/autofill_client_ios_bridge.h" 15 #include "components/autofill/ios/browser/autofill_client_ios_bridge.h"
17 16
18 class IdentityProvider; 17 class IdentityProvider;
19 18
20 namespace infobars { 19 namespace infobars {
21 class InfoBarManager; 20 class InfoBarManager;
22 } 21 }
23 22
24 namespace ios { 23 namespace ios {
25 class ChromeBrowserState; 24 class ChromeBrowserState;
26 } 25 }
27 26
28 namespace password_manager { 27 namespace password_manager {
29 class PasswordGenerationManager; 28 class PasswordGenerationManager;
30 } 29 }
31 30
32 namespace syncer { 31 namespace sync_driver {
33 class SyncService; 32 class SyncService;
34 } 33 }
35 34
36 namespace autofill { 35 namespace autofill {
37 36
38 class PersonalDataManager; 37 class PersonalDataManager;
39 38
40 // iOS implementation of AutofillClient. 39 // iOS implementation of AutofillClient.
41 // TODO(dconnelly): Split this up, as it collects functionality that doesn't 40 // TODO(dconnelly): Split this up, as it collects functionality that doesn't
42 // necessarily fit together on iOS. http://crbug.com/432487. 41 // necessarily fit together on iOS. http://crbug.com/432487.
43 class AutofillClientIOS : public AutofillClient { 42 class AutofillClientIOS : public AutofillClient {
44 public: 43 public:
45 AutofillClientIOS( 44 AutofillClientIOS(
46 ios::ChromeBrowserState* browser_state, 45 ios::ChromeBrowserState* browser_state,
47 infobars::InfoBarManager* infobar_manager, 46 infobars::InfoBarManager* infobar_manager,
48 id<AutofillClientIOSBridge> bridge, 47 id<AutofillClientIOSBridge> bridge,
49 password_manager::PasswordGenerationManager* password_generation_manager, 48 password_manager::PasswordGenerationManager* password_generation_manager,
50 std::unique_ptr<IdentityProvider> identity_provider); 49 std::unique_ptr<IdentityProvider> identity_provider);
51 ~AutofillClientIOS() override; 50 ~AutofillClientIOS() override;
52 51
53 // AutofillClient implementation. 52 // AutofillClient implementation.
54 PersonalDataManager* GetPersonalDataManager() override; 53 PersonalDataManager* GetPersonalDataManager() override;
55 PrefService* GetPrefs() override; 54 PrefService* GetPrefs() override;
56 syncer::SyncService* GetSyncService() override; 55 sync_driver::SyncService* GetSyncService() override;
57 IdentityProvider* GetIdentityProvider() override; 56 IdentityProvider* GetIdentityProvider() override;
58 rappor::RapporService* GetRapporService() override; 57 rappor::RapporService* GetRapporService() override;
59 void ShowAutofillSettings() override; 58 void ShowAutofillSettings() override;
60 void ShowUnmaskPrompt(const CreditCard& card, 59 void ShowUnmaskPrompt(const CreditCard& card,
61 UnmaskCardReason reason, 60 UnmaskCardReason reason,
62 base::WeakPtr<CardUnmaskDelegate> delegate) override; 61 base::WeakPtr<CardUnmaskDelegate> delegate) override;
63 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; 62 void OnUnmaskVerificationResult(PaymentsRpcResult result) override;
64 void ConfirmSaveCreditCardLocally(const CreditCard& card, 63 void ConfirmSaveCreditCardLocally(const CreditCard& card,
65 const base::Closure& callback) override; 64 const base::Closure& callback) override;
66 void ConfirmSaveCreditCardToCloud( 65 void ConfirmSaveCreditCardToCloud(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 password_manager::PasswordGenerationManager* password_generation_manager_; 100 password_manager::PasswordGenerationManager* password_generation_manager_;
102 std::unique_ptr<IdentityProvider> identity_provider_; 101 std::unique_ptr<IdentityProvider> identity_provider_;
103 CardUnmaskPromptControllerImpl unmask_controller_; 102 CardUnmaskPromptControllerImpl unmask_controller_;
104 103
105 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS); 104 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS);
106 }; 105 };
107 106
108 } // namespace autofill 107 } // namespace autofill
109 108
110 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ 109 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/sync/sync_setup_service_mock.cc ('k') | ios/chrome/browser/ui/autofill/autofill_client_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698