Chromium Code Reviews| 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_ | |
|
tony
2011/02/07 20:51:45
copy/paste error :)
koz (OOO until 15th September)
2011/02/13 22:33:48
Done.
| |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/string16.h" | |
| 10 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | |
| 11 #include "chrome/browser/tab_contents/infobar_delegate.h" | |
| 12 | |
| 13 class AutoFillManager; | |
| 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 RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { | |
| 20 public: | |
| 21 RegisterProtocolHandlerInfoBarDelegate(TabContents* tab_contents, ProtocolHand lerRegistry* registry, ProtocolHandler* handler); | |
| 22 | |
| 23 // ConfirmInfoBarDelegate implementation. | |
| 24 virtual bool ShouldExpire( | |
| 25 const NavigationController::LoadCommittedDetails& details) const; | |
|
tony
2011/02/07 20:51:45
You can use OVERRIDE from base/compiler_specific.h
koz (OOO until 15th September)
2011/02/13 22:33:48
Done.
| |
| 26 virtual void InfoBarClosed(); | |
| 27 virtual string16 GetMessageText() const; | |
| 28 virtual SkBitmap* GetIcon() const; | |
| 29 virtual int GetButtons() const; | |
| 30 virtual string16 GetButtonLabel( | |
| 31 ConfirmInfoBarDelegate::InfoBarButton button) const; | |
| 32 virtual bool Accept(); | |
| 33 virtual bool Cancel(); | |
| 34 virtual string16 GetLinkText(); | |
| 35 virtual bool LinkClicked(WindowOpenDisposition disposition); | |
| 36 virtual Type GetInfoBarType(); | |
| 37 | |
| 38 private: | |
| 39 // The AutoFillManager that initiated this InfoBar. | |
| 40 AutoFillManager* host_; | |
|
tony
2011/02/07 20:51:45
Do you still need this?
koz (OOO until 15th September)
2011/02/13 22:33:48
Done.
| |
| 41 ProtocolHandlerRegistry* registry_; | |
| 42 ProtocolHandler* handler_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); | |
| 45 }; | |
| 46 | |
| 47 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | |
| OLD | NEW |