Index: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h |
diff --git a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..285a51238c79ca0f7c007f2f54fa334875e313de |
--- /dev/null |
+++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h |
@@ -0,0 +1,47 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
+#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.
|
+#pragma once |
+ |
+#include "base/string16.h" |
+#include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
+#include "chrome/browser/tab_contents/infobar_delegate.h" |
+ |
+class AutoFillManager; |
+class SkBitmap; |
+class TabContents; |
+ |
+// An InfoBar delegate that enables the user to allow or deny storing credit |
+// card information gathered from a form submission. |
+class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { |
+ public: |
+ RegisterProtocolHandlerInfoBarDelegate(TabContents* tab_contents, ProtocolHandlerRegistry* registry, ProtocolHandler* handler); |
+ |
+ // ConfirmInfoBarDelegate implementation. |
+ virtual bool ShouldExpire( |
+ 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.
|
+ virtual void InfoBarClosed(); |
+ virtual string16 GetMessageText() const; |
+ virtual SkBitmap* GetIcon() const; |
+ virtual int GetButtons() const; |
+ virtual string16 GetButtonLabel( |
+ ConfirmInfoBarDelegate::InfoBarButton button) const; |
+ virtual bool Accept(); |
+ virtual bool Cancel(); |
+ virtual string16 GetLinkText(); |
+ virtual bool LinkClicked(WindowOpenDisposition disposition); |
+ virtual Type GetInfoBarType(); |
+ |
+ private: |
+ // The AutoFillManager that initiated this InfoBar. |
+ 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.
|
+ ProtocolHandlerRegistry* registry_; |
+ ProtocolHandler* handler_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); |
+}; |
+ |
+#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |