| 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // Chrome implementation of AutofillManagerDelegate. | 30 // Chrome implementation of AutofillManagerDelegate. |
| 31 class TabAutofillManagerDelegate | 31 class TabAutofillManagerDelegate |
| 32 : public AutofillManagerDelegate, | 32 : public AutofillManagerDelegate, |
| 33 public ProfileSyncServiceObserver, | 33 public ProfileSyncServiceObserver, |
| 34 public content::WebContentsUserData<TabAutofillManagerDelegate>, | 34 public content::WebContentsUserData<TabAutofillManagerDelegate>, |
| 35 public content::WebContentsObserver { | 35 public content::WebContentsObserver { |
| 36 public: | 36 public: |
| 37 virtual ~TabAutofillManagerDelegate(); | 37 virtual ~TabAutofillManagerDelegate(); |
| 38 | 38 |
| 39 // AutofillManagerDelegate implementation. | 39 // AutofillManagerDelegate implementation. |
| 40 virtual scoped_refptr<AutofillWebDataService> GetAutofillWebDataService() |
| 41 OVERRIDE; |
| 40 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; | 42 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; |
| 41 virtual PrefService* GetPrefs() OVERRIDE; | 43 virtual PrefService* GetPrefs() OVERRIDE; |
| 42 virtual autocheckout::WhitelistManager* | 44 virtual autocheckout::WhitelistManager* |
| 43 GetAutocheckoutWhitelistManager() const OVERRIDE; | 45 GetAutocheckoutWhitelistManager() const OVERRIDE; |
| 44 virtual void HideRequestAutocompleteDialog() OVERRIDE; | 46 virtual void HideRequestAutocompleteDialog() OVERRIDE; |
| 45 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; | 47 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; |
| 46 virtual bool IsPasswordSyncEnabled() const OVERRIDE; | 48 virtual bool IsPasswordSyncEnabled() const OVERRIDE; |
| 47 virtual void SetSyncStateChangedCallback( | 49 virtual void SetSyncStateChangedCallback( |
| 48 const base::Closure& callback) OVERRIDE; | 50 const base::Closure& callback) OVERRIDE; |
| 49 virtual void OnAutocheckoutError() OVERRIDE; | 51 virtual void OnAutocheckoutError() OVERRIDE; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_; | 94 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_; |
| 93 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; | 95 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; |
| 94 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 96 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); | 98 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace autofill | 101 } // namespace autofill |
| 100 | 102 |
| 101 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 103 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |