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

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

Issue 710453002: [Autofill] Componentize AutofillCCInfoBarDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Peter's input over use of WeakPtr<>. Created 5 years, 12 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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Called when the tab corresponding to |this| instance is activated. 44 // Called when the tab corresponding to |this| instance is activated.
45 void TabActivated(); 45 void TabActivated();
46 46
47 // AutofillClient: 47 // AutofillClient:
48 PersonalDataManager* GetPersonalDataManager() override; 48 PersonalDataManager* GetPersonalDataManager() override;
49 scoped_refptr<AutofillWebDataService> GetDatabase() override; 49 scoped_refptr<AutofillWebDataService> GetDatabase() override;
50 PrefService* GetPrefs() override; 50 PrefService* GetPrefs() override;
51 void HideRequestAutocompleteDialog() override; 51 void HideRequestAutocompleteDialog() override;
52 void ShowAutofillSettings() override; 52 void ShowAutofillSettings() override;
53 void ShowUnmaskPrompt() override; 53 void ShowUnmaskPrompt() override;
54 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; 54 void ConfirmSaveCreditCard(AutofillDriver* autofill_driver,
55 const base::Closure& save_card_callback) override;
55 bool HasCreditCardScanFeature() override; 56 bool HasCreditCardScanFeature() override;
56 void ScanCreditCard(const CreditCardScanCallback& callback) override; 57 void ScanCreditCard(const CreditCardScanCallback& callback) override;
57 void ShowRequestAutocompleteDialog(const FormData& form, 58 void ShowRequestAutocompleteDialog(const FormData& form,
58 const GURL& source_url, 59 const GURL& source_url,
59 const ResultCallback& callback) override; 60 const ResultCallback& callback) override;
60 void ShowAutofillPopup( 61 void ShowAutofillPopup(
61 const gfx::RectF& element_bounds, 62 const gfx::RectF& element_bounds,
62 base::i18n::TextDirection text_direction, 63 base::i18n::TextDirection text_direction,
63 const std::vector<autofill::Suggestion>& suggestions, 64 const std::vector<autofill::Suggestion>& suggestions,
64 base::WeakPtr<AutofillPopupDelegate> delegate) override; 65 base::WeakPtr<AutofillPopupDelegate> delegate) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 CardUnmaskPromptView* card_unmask_view_; 129 CardUnmaskPromptView* card_unmask_view_;
129 130
130 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_; 131 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); 133 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
133 }; 134 };
134 135
135 } // namespace autofill 136 } // namespace autofill
136 137
137 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 138 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698