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

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.h

Issue 1865213004: Convert //chrome/browser/ui 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 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 <vector> 9 #include <vector>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "components/autofill/core/browser/autofill_client.h" 16 #include "components/autofill/core/browser/autofill_client.h"
17 #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"
18 #include "components/ui/zoom/zoom_observer.h" 18 #include "components/ui/zoom/zoom_observer.h"
19 #include "content/public/browser/web_contents_observer.h" 19 #include "content/public/browser/web_contents_observer.h"
20 #include "content/public/browser/web_contents_user_data.h" 20 #include "content/public/browser/web_contents_user_data.h"
21 21
22 namespace content { 22 namespace content {
23 struct FrameNavigateParams; 23 struct FrameNavigateParams;
24 struct LoadCommittedDetails; 24 struct LoadCommittedDetails;
(...skipping 28 matching lines...) Expand all
53 rappor::RapporService* GetRapporService() override; 53 rappor::RapporService* GetRapporService() override;
54 void HideRequestAutocompleteDialog() override; 54 void HideRequestAutocompleteDialog() override;
55 void ShowAutofillSettings() override; 55 void ShowAutofillSettings() override;
56 void ShowUnmaskPrompt(const CreditCard& card, 56 void ShowUnmaskPrompt(const CreditCard& card,
57 base::WeakPtr<CardUnmaskDelegate> delegate) override; 57 base::WeakPtr<CardUnmaskDelegate> delegate) override;
58 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; 58 void OnUnmaskVerificationResult(PaymentsRpcResult result) override;
59 void ConfirmSaveCreditCardLocally(const CreditCard& card, 59 void ConfirmSaveCreditCardLocally(const CreditCard& card,
60 const base::Closure& callback) override; 60 const base::Closure& callback) override;
61 void ConfirmSaveCreditCardToCloud( 61 void ConfirmSaveCreditCardToCloud(
62 const CreditCard& card, 62 const CreditCard& card,
63 scoped_ptr<base::DictionaryValue> legal_message, 63 std::unique_ptr<base::DictionaryValue> legal_message,
64 const base::Closure& callback) override; 64 const base::Closure& callback) override;
65 void LoadRiskData( 65 void LoadRiskData(
66 const base::Callback<void(const std::string&)>& callback) override; 66 const base::Callback<void(const std::string&)>& callback) override;
67 bool HasCreditCardScanFeature() override; 67 bool HasCreditCardScanFeature() override;
68 void ScanCreditCard(const CreditCardScanCallback& callback) override; 68 void ScanCreditCard(const CreditCardScanCallback& callback) override;
69 void ShowRequestAutocompleteDialog( 69 void ShowRequestAutocompleteDialog(
70 const FormData& form, 70 const FormData& form,
71 content::RenderFrameHost* render_frame_host, 71 content::RenderFrameHost* render_frame_host,
72 const ResultCallback& callback) override; 72 const ResultCallback& callback) override;
73 void ShowAutofillPopup( 73 void ShowAutofillPopup(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 friend class content::WebContentsUserData<ChromeAutofillClient>; 115 friend class content::WebContentsUserData<ChromeAutofillClient>;
116 116
117 base::WeakPtr<AutofillDialogController> dialog_controller_; 117 base::WeakPtr<AutofillDialogController> dialog_controller_;
118 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; 118 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
119 CardUnmaskPromptControllerImpl unmask_controller_; 119 CardUnmaskPromptControllerImpl unmask_controller_;
120 120
121 // The last render frame that called requestAutocomplete. 121 // The last render frame that called requestAutocomplete.
122 content::RenderFrameHost* last_rfh_to_rac_; 122 content::RenderFrameHost* last_rfh_to_rac_;
123 123
124 // The identity provider, used for Payments integration. 124 // The identity provider, used for Payments integration.
125 scoped_ptr<IdentityProvider> identity_provider_; 125 std::unique_ptr<IdentityProvider> identity_provider_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); 127 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
128 }; 128 };
129 129
130 } // namespace autofill 130 } // namespace autofill
131 131
132 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 132 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/card_unmask_prompt_view_tester.h ('k') | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698