OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_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 20 matching lines...) Expand all Loading... |
31 public content::WebContentsUserData<TabAutofillManagerDelegate>, | 31 public content::WebContentsUserData<TabAutofillManagerDelegate>, |
32 public content::WebContentsObserver { | 32 public content::WebContentsObserver { |
33 public: | 33 public: |
34 virtual ~TabAutofillManagerDelegate(); | 34 virtual ~TabAutofillManagerDelegate(); |
35 | 35 |
36 // Called when the tab corresponding to |this| instance is activated. | 36 // Called when the tab corresponding to |this| instance is activated. |
37 void TabActivated(int reason); | 37 void TabActivated(int reason); |
38 | 38 |
39 // AutofillManagerDelegate implementation. | 39 // AutofillManagerDelegate implementation. |
40 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; | 40 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; |
| 41 virtual scoped_refptr<AutofillWebDataService> |
| 42 GetDatabase() OVERRIDE; |
41 virtual PrefService* GetPrefs() OVERRIDE; | 43 virtual PrefService* GetPrefs() OVERRIDE; |
42 virtual void HideRequestAutocompleteDialog() OVERRIDE; | 44 virtual void HideRequestAutocompleteDialog() OVERRIDE; |
43 virtual void ShowAutofillSettings() OVERRIDE; | 45 virtual void ShowAutofillSettings() OVERRIDE; |
44 virtual void ConfirmSaveCreditCard( | 46 virtual void ConfirmSaveCreditCard( |
45 const AutofillMetrics& metric_logger, | 47 const AutofillMetrics& metric_logger, |
46 const base::Closure& save_card_callback) OVERRIDE; | 48 const base::Closure& save_card_callback) OVERRIDE; |
47 virtual void ShowRequestAutocompleteDialog( | 49 virtual void ShowRequestAutocompleteDialog( |
48 const FormData& form, | 50 const FormData& form, |
49 const GURL& source_url, | 51 const GURL& source_url, |
50 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE; | 52 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 content::WebContents* const web_contents_; | 87 content::WebContents* const web_contents_; |
86 base::WeakPtr<AutofillDialogController> dialog_controller_; | 88 base::WeakPtr<AutofillDialogController> dialog_controller_; |
87 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 89 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
88 | 90 |
89 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); |
90 }; | 92 }; |
91 | 93 |
92 } // namespace autofill | 94 } // namespace autofill |
93 | 95 |
94 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 96 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
OLD | NEW |