OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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_CC_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 11 |
| 12 class AutoFillManager; |
| 13 class Browser; |
| 14 class SkBitmap; |
| 15 class TabContents; |
| 16 |
| 17 // An InfoBar delegate that enables the user to allow or deny storing credit |
| 18 // card information gathered from a form submission. |
| 19 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { |
| 20 public: |
| 21 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); |
| 22 virtual ~AutoFillCCInfoBarDelegate(); |
| 23 |
| 24 // ConfirmInfoBarDelegate implementation. |
| 25 virtual bool ShouldExpire( |
| 26 const NavigationController::LoadCommittedDetails& details) const; |
| 27 virtual void InfoBarClosed(); |
| 28 virtual std::wstring GetMessageText() const; |
| 29 virtual SkBitmap* GetIcon() const; |
| 30 virtual int GetButtons() const; |
| 31 virtual std::wstring GetButtonLabel( |
| 32 ConfirmInfoBarDelegate::InfoBarButton button) const; |
| 33 virtual bool Accept(); |
| 34 virtual bool Cancel(); |
| 35 virtual std::wstring GetLinkText(); |
| 36 virtual bool LinkClicked(WindowOpenDisposition disposition); |
| 37 |
| 38 private: |
| 39 // The browser. |
| 40 Browser* browser_; |
| 41 |
| 42 // The AutoFillManager that initiated this InfoBar. |
| 43 AutoFillManager* host_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); |
| 46 }; |
| 47 |
| 48 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
OLD | NEW |