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

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

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 <vector> 9 #include <vector>
9 10
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "components/autofill/core/browser/autofill_client.h" 13 #include "components/autofill/core/browser/autofill_client.h"
14 #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"
15 #include "components/autofill/ios/browser/autofill_client_ios_bridge.h" 15 #include "components/autofill/ios/browser/autofill_client_ios_bridge.h"
16 16
17 class IdentityProvider; 17 class IdentityProvider;
18 18
19 namespace infobars { 19 namespace infobars {
20 class InfoBarManager; 20 class InfoBarManager;
21 } 21 }
22 22
(...skipping 16 matching lines...) Expand all
39 // iOS implementation of AutofillClient. 39 // iOS implementation of AutofillClient.
40 // 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
41 // necessarily fit together on iOS. http://crbug.com/432487. 41 // necessarily fit together on iOS. http://crbug.com/432487.
42 class AutofillClientIOS : public AutofillClient { 42 class AutofillClientIOS : public AutofillClient {
43 public: 43 public:
44 AutofillClientIOS( 44 AutofillClientIOS(
45 ios::ChromeBrowserState* browser_state, 45 ios::ChromeBrowserState* browser_state,
46 infobars::InfoBarManager* infobar_manager, 46 infobars::InfoBarManager* infobar_manager,
47 id<AutofillClientIOSBridge> bridge, 47 id<AutofillClientIOSBridge> bridge,
48 password_manager::PasswordGenerationManager* password_generation_manager, 48 password_manager::PasswordGenerationManager* password_generation_manager,
49 scoped_ptr<IdentityProvider> identity_provider); 49 std::unique_ptr<IdentityProvider> identity_provider);
50 ~AutofillClientIOS() override; 50 ~AutofillClientIOS() override;
51 51
52 // AutofillClient implementation. 52 // AutofillClient implementation.
53 PersonalDataManager* GetPersonalDataManager() override; 53 PersonalDataManager* GetPersonalDataManager() override;
54 PrefService* GetPrefs() override; 54 PrefService* GetPrefs() override;
55 sync_driver::SyncService* GetSyncService() override; 55 sync_driver::SyncService* GetSyncService() override;
56 IdentityProvider* GetIdentityProvider() override; 56 IdentityProvider* GetIdentityProvider() override;
57 rappor::RapporService* GetRapporService() override; 57 rappor::RapporService* GetRapporService() override;
58 void HideRequestAutocompleteDialog() override; 58 void HideRequestAutocompleteDialog() override;
59 void ShowAutofillSettings() override; 59 void ShowAutofillSettings() override;
60 void ShowUnmaskPrompt(const CreditCard& card, 60 void ShowUnmaskPrompt(const CreditCard& card,
61 base::WeakPtr<CardUnmaskDelegate> delegate) override; 61 base::WeakPtr<CardUnmaskDelegate> delegate) override;
62 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; 62 void OnUnmaskVerificationResult(PaymentsRpcResult result) override;
63 void ConfirmSaveCreditCardLocally(const CreditCard& card, 63 void ConfirmSaveCreditCardLocally(const CreditCard& card,
64 const base::Closure& callback) override; 64 const base::Closure& callback) override;
65 void ConfirmSaveCreditCardToCloud( 65 void ConfirmSaveCreditCardToCloud(
66 const CreditCard& card, 66 const CreditCard& card,
67 scoped_ptr<base::DictionaryValue> legal_message, 67 std::unique_ptr<base::DictionaryValue> legal_message,
68 const base::Closure& callback) override; 68 const base::Closure& callback) override;
69 void LoadRiskData( 69 void LoadRiskData(
70 const base::Callback<void(const std::string&)>& callback) override; 70 const base::Callback<void(const std::string&)>& callback) override;
71 bool HasCreditCardScanFeature() override; 71 bool HasCreditCardScanFeature() override;
72 void ScanCreditCard(const CreditCardScanCallback& callback) override; 72 void ScanCreditCard(const CreditCardScanCallback& callback) override;
73 void ShowRequestAutocompleteDialog( 73 void ShowRequestAutocompleteDialog(
74 const FormData& form, 74 const FormData& form,
75 content::RenderFrameHost* render_frame_host, 75 content::RenderFrameHost* render_frame_host,
76 const ResultCallback& callback) override; 76 const ResultCallback& callback) override;
77 void ShowAutofillPopup( 77 void ShowAutofillPopup(
(...skipping 13 matching lines...) Expand all
91 const base::string16& profile_full_name) override; 91 const base::string16& profile_full_name) override;
92 void OnFirstUserGestureObserved() override; 92 void OnFirstUserGestureObserved() override;
93 scoped_refptr<AutofillWebDataService> GetDatabase() override; 93 scoped_refptr<AutofillWebDataService> GetDatabase() override;
94 bool IsContextSecure(const GURL& form_origin) override; 94 bool IsContextSecure(const GURL& form_origin) override;
95 95
96 private: 96 private:
97 ios::ChromeBrowserState* browser_state_; 97 ios::ChromeBrowserState* browser_state_;
98 infobars::InfoBarManager* infobar_manager_; 98 infobars::InfoBarManager* infobar_manager_;
99 id<AutofillClientIOSBridge> bridge_; // Weak 99 id<AutofillClientIOSBridge> bridge_; // Weak
100 password_manager::PasswordGenerationManager* password_generation_manager_; 100 password_manager::PasswordGenerationManager* password_generation_manager_;
101 scoped_ptr<IdentityProvider> identity_provider_; 101 std::unique_ptr<IdentityProvider> identity_provider_;
102 CardUnmaskPromptControllerImpl unmask_controller_; 102 CardUnmaskPromptControllerImpl unmask_controller_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS); 104 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS);
105 }; 105 };
106 106
107 } // namespace autofill 107 } // namespace autofill
108 108
109 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ 109 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698