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/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/autofill/autofill_manager_delegate.h" | 9 #include "chrome/browser/autofill/autofill_manager_delegate.h" |
10 | 10 |
11 class TabContents; | 11 class TabContents; |
12 | 12 |
13 // Chrome implementation of AutofillManagerDelegate. | 13 // Chrome implementation of AutofillManagerDelegate. |
14 class TabAutofillManagerDelegate : public autofill::AutofillManagerDelegate { | 14 class TabAutofillManagerDelegate : public autofill::AutofillManagerDelegate { |
15 public: | 15 public: |
16 // Lifetime of |tab| must exceed lifetime of TabAutofillManagerDelegate. | 16 // Lifetime of |tab| must exceed lifetime of TabAutofillManagerDelegate. |
17 explicit TabAutofillManagerDelegate(TabContents* tab); | 17 explicit TabAutofillManagerDelegate(TabContents* tab); |
18 virtual ~TabAutofillManagerDelegate() {} | 18 virtual ~TabAutofillManagerDelegate() {} |
19 | 19 |
20 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; | 20 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; |
21 virtual content::BrowserContext* GetOriginalBrowserContext() const OVERRIDE; | 21 virtual content::BrowserContext* GetOriginalBrowserContext() const OVERRIDE; |
22 virtual Profile* GetOriginalProfile() const OVERRIDE; | 22 virtual Profile* GetOriginalProfile() const OVERRIDE; |
23 virtual InfoBarService* GetInfoBarService() OVERRIDE; | 23 virtual InfoBarService* GetInfoBarService() OVERRIDE; |
24 virtual PrefServiceBase* GetPrefs() OVERRIDE; | 24 virtual PrefServiceBase* GetPrefs() OVERRIDE; |
25 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE; | 25 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE; |
26 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; | 26 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; |
27 virtual void ShowAutofillSettings() OVERRIDE; | 27 virtual void ShowAutofillSettings() OVERRIDE; |
28 virtual void ShowPasswordGenerationBubble( | 28 virtual void ShowPasswordGenerationBubble( |
29 const gfx::Rect& bounds, | 29 const gfx::Rect& bounds, |
30 const webkit::forms::PasswordForm& form, | 30 const content::PasswordForm& form, |
31 autofill::PasswordGenerator* generator) OVERRIDE; | 31 autofill::PasswordGenerator* generator) OVERRIDE; |
32 | 32 |
33 private: | 33 private: |
34 TabContents* const tab_; | 34 TabContents* const tab_; |
35 }; | 35 }; |
36 | 36 |
37 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 37 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
OLD | NEW |