OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_INFOBAR_DELEGATE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 11 |
| 12 class AutoFillManager; |
| 13 class SkBitmap; |
| 14 class TabContents; |
| 15 |
| 16 // An InfoBar delegate that enables the user to allow or deny storing personal |
| 17 // information gathered from a form submission. |
| 18 class AutoFillInfoBarDelegate : public ConfirmInfoBarDelegate { |
| 19 public: |
| 20 AutoFillInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); |
| 21 virtual ~AutoFillInfoBarDelegate(); |
| 22 |
| 23 // ConfirmInfoBarDelegate implementation. |
| 24 virtual bool ShouldExpire( |
| 25 const NavigationController::LoadCommittedDetails& details) const; |
| 26 virtual void InfoBarClosed(); |
| 27 virtual std::wstring GetMessageText() const; |
| 28 virtual SkBitmap* GetIcon() const; |
| 29 virtual int GetButtons() const; |
| 30 virtual std::wstring GetButtonLabel( |
| 31 ConfirmInfoBarDelegate::InfoBarButton button) const; |
| 32 virtual bool Accept(); |
| 33 virtual bool Cancel(); |
| 34 |
| 35 private: |
| 36 // The autofill manager that initiated this infobar. |
| 37 AutoFillManager* host_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(AutoFillInfoBarDelegate); |
| 40 }; |
| 41 |
| 42 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_INFOBAR_DELEGATE_H_ |
OLD | NEW |