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_TAB_CONTENTS_TAB_AUTOFILL_MANAGER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_AUTOFILL_MANAGER_CLIENT_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_AUTOFILL_MANAGER_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_AUTOFILL_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/autofill/api/autofill_manager_delegate.h" | 9 #include "chrome/browser/autofill/api/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 TabAutofillManagerDelegate(TabContents* tab); | 17 TabAutofillManagerDelegate(TabContents* tab); |
18 virtual ~TabAutofillManagerDelegate() {} | 18 virtual ~TabAutofillManagerDelegate() {} |
19 | 19 |
20 virtual InfoBarTabService* GetInfoBarService() OVERRIDE; | 20 virtual InfoBarService* GetInfoBarService() OVERRIDE; |
21 virtual PrefServiceBase* GetPrefs() OVERRIDE; | 21 virtual PrefServiceBase* GetPrefs() OVERRIDE; |
22 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; | 22 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; |
23 | 23 |
24 private: | 24 private: |
25 TabContents* const tab_; | 25 TabContents* const tab_; |
26 }; | 26 }; |
27 | 27 |
28 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_AUTOFILL_MANAGER_CLIENT_H_ | 28 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_AUTOFILL_MANAGER_CLIENT_H_ |
OLD | NEW |