| 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 18 matching lines...) Expand all Loading... |
| 29 // Chrome implementation of AutofillManagerDelegate. | 29 // Chrome implementation of AutofillManagerDelegate. |
| 30 class TabAutofillManagerDelegate | 30 class TabAutofillManagerDelegate |
| 31 : public AutofillManagerDelegate, | 31 : public AutofillManagerDelegate, |
| 32 public ProfileSyncServiceObserver, | 32 public ProfileSyncServiceObserver, |
| 33 public content::WebContentsUserData<TabAutofillManagerDelegate>, | 33 public content::WebContentsUserData<TabAutofillManagerDelegate>, |
| 34 public content::WebContentsObserver { | 34 public content::WebContentsObserver { |
| 35 public: | 35 public: |
| 36 virtual ~TabAutofillManagerDelegate(); | 36 virtual ~TabAutofillManagerDelegate(); |
| 37 | 37 |
| 38 // AutofillManagerDelegate implementation. | 38 // AutofillManagerDelegate implementation. |
| 39 virtual InfoBarService* GetInfoBarService() OVERRIDE; | |
| 40 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; | 39 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; |
| 41 virtual PrefService* GetPrefs() OVERRIDE; | 40 virtual PrefService* GetPrefs() OVERRIDE; |
| 42 virtual void HideRequestAutocompleteDialog() OVERRIDE; | 41 virtual void HideRequestAutocompleteDialog() OVERRIDE; |
| 43 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; | 42 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; |
| 44 virtual bool IsPasswordSyncEnabled() const OVERRIDE; | 43 virtual bool IsPasswordSyncEnabled() const OVERRIDE; |
| 45 virtual void SetSyncStateChangedCallback( | 44 virtual void SetSyncStateChangedCallback( |
| 46 const base::Closure& callback) OVERRIDE; | 45 const base::Closure& callback) OVERRIDE; |
| 47 virtual void OnAutocheckoutError() OVERRIDE; | 46 virtual void OnAutocheckoutError() OVERRIDE; |
| 48 virtual void ShowAutofillSettings() OVERRIDE; | 47 virtual void ShowAutofillSettings() OVERRIDE; |
| 48 virtual void ConfirmSaveCreditCard( |
| 49 const AutofillMetrics& metric_logger, |
| 50 const CreditCard& credit_card, |
| 51 const base::Closure& save_card_callback) OVERRIDE; |
| 49 virtual void ShowPasswordGenerationBubble( | 52 virtual void ShowPasswordGenerationBubble( |
| 50 const gfx::Rect& bounds, | 53 const gfx::Rect& bounds, |
| 51 const content::PasswordForm& form, | 54 const content::PasswordForm& form, |
| 52 PasswordGenerator* generator) OVERRIDE; | 55 PasswordGenerator* generator) OVERRIDE; |
| 53 virtual void ShowAutocheckoutBubble( | 56 virtual void ShowAutocheckoutBubble( |
| 54 const gfx::RectF& bounds, | 57 const gfx::RectF& bounds, |
| 55 const gfx::NativeView& native_view, | 58 const gfx::NativeView& native_view, |
| 56 const base::Closure& callback) OVERRIDE; | 59 const base::Closure& callback) OVERRIDE; |
| 57 virtual void ShowRequestAutocompleteDialog( | 60 virtual void ShowRequestAutocompleteDialog( |
| 58 const FormData& form, | 61 const FormData& form, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 87 content::WebContents* const web_contents_; | 90 content::WebContents* const web_contents_; |
| 88 AutofillDialogControllerImpl* dialog_controller_; // weak. | 91 AutofillDialogControllerImpl* dialog_controller_; // weak. |
| 89 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 92 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
| 90 | 93 |
| 91 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); | 94 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); |
| 92 }; | 95 }; |
| 93 | 96 |
| 94 } // namespace autofill | 97 } // namespace autofill |
| 95 | 98 |
| 96 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 99 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |