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

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

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove std::move Created 4 years, 4 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 <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void ShowUnmaskPrompt(const CreditCard& card, 51 void ShowUnmaskPrompt(const CreditCard& card,
52 UnmaskCardReason reason, 52 UnmaskCardReason reason,
53 base::WeakPtr<CardUnmaskDelegate> delegate) override; 53 base::WeakPtr<CardUnmaskDelegate> delegate) override;
54 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; 54 void OnUnmaskVerificationResult(PaymentsRpcResult result) override;
55 void ConfirmSaveCreditCardLocally(const CreditCard& card, 55 void ConfirmSaveCreditCardLocally(const CreditCard& card,
56 const base::Closure& callback) override; 56 const base::Closure& callback) override;
57 void ConfirmSaveCreditCardToCloud( 57 void ConfirmSaveCreditCardToCloud(
58 const CreditCard& card, 58 const CreditCard& card,
59 std::unique_ptr<base::DictionaryValue> legal_message, 59 std::unique_ptr<base::DictionaryValue> legal_message,
60 const base::Closure& callback) override; 60 const base::Closure& callback) override;
61 void ConfirmCreditCardFillAssist(const CreditCard& card,
62 const base::Closure& callback) override;
63 #if defined(OS_ANDROID)
64 std::unique_ptr<infobars::InfoBar> CreateCreditCardFillingInfoBar(
65 std::unique_ptr<AutofillCreditCardFillingInfoBarDelegateMobile> delegate)
66 override;
67 #endif
61 void LoadRiskData( 68 void LoadRiskData(
62 const base::Callback<void(const std::string&)>& callback) override; 69 const base::Callback<void(const std::string&)>& callback) override;
63 bool HasCreditCardScanFeature() override; 70 bool HasCreditCardScanFeature() override;
64 void ScanCreditCard(const CreditCardScanCallback& callback) override; 71 void ScanCreditCard(const CreditCardScanCallback& callback) override;
65 void ShowAutofillPopup( 72 void ShowAutofillPopup(
66 const gfx::RectF& element_bounds, 73 const gfx::RectF& element_bounds,
67 base::i18n::TextDirection text_direction, 74 base::i18n::TextDirection text_direction,
68 const std::vector<autofill::Suggestion>& suggestions, 75 const std::vector<autofill::Suggestion>& suggestions,
69 base::WeakPtr<AutofillPopupDelegate> delegate) override; 76 base::WeakPtr<AutofillPopupDelegate> delegate) override;
70 void UpdateAutofillPopupDataListValues( 77 void UpdateAutofillPopupDataListValues(
(...skipping 22 matching lines...) Expand all
93 private: 100 private:
94 explicit ChromeAutofillClient(content::WebContents* web_contents); 101 explicit ChromeAutofillClient(content::WebContents* web_contents);
95 friend class content::WebContentsUserData<ChromeAutofillClient>; 102 friend class content::WebContentsUserData<ChromeAutofillClient>;
96 103
97 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; 104 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
98 CardUnmaskPromptControllerImpl unmask_controller_; 105 CardUnmaskPromptControllerImpl unmask_controller_;
99 106
100 // The identity provider, used for Payments integration. 107 // The identity provider, used for Payments integration.
101 std::unique_ptr<IdentityProvider> identity_provider_; 108 std::unique_ptr<IdentityProvider> identity_provider_;
102 109
110 base::WeakPtrFactory<ChromeAutofillClient> weak_ptr_factory_;
111
103 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); 112 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
104 }; 113 };
105 114
106 } // namespace autofill 115 } // namespace autofill
107 116
108 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 117 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698