Index: chrome/browser/intents/register_intent_handler_infobar_delegate.h |
diff --git a/chrome/browser/intents/register_intent_handler_infobar_delegate.h b/chrome/browser/intents/register_intent_handler_infobar_delegate.h |
index 315691ab745a69486377d75fb708ffd3ec31fb14..0c740710706acee37178b3bd42f6d9486962ec44 100644 |
--- a/chrome/browser/intents/register_intent_handler_infobar_delegate.h |
+++ b/chrome/browser/intents/register_intent_handler_infobar_delegate.h |
@@ -8,21 +8,24 @@ |
#include "base/basictypes.h" |
#include "base/string16.h" |
+#include "chrome/browser/intents/web_intent_data.h" |
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
+class Profile; |
class TabContents; |
// The InfoBar used to request permission for a site to be registered as an |
// Intent handler. |
class RegisterIntentHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { |
public: |
- // TODO(jhawkins): Pass in WebIntentData. |
- explicit RegisterIntentHandlerInfoBarDelegate(TabContents* tab_contents); |
+ RegisterIntentHandlerInfoBarDelegate(TabContents* tab_contents, |
+ const WebIntentData& intent); |
// ConfirmInfoBarDelegate implementation. |
virtual Type GetInfoBarType() const OVERRIDE; |
virtual string16 GetMessageText() const OVERRIDE; |
virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
+ virtual bool Accept() OVERRIDE; |
virtual string16 GetLinkText() const OVERRIDE; |
virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; |
@@ -30,6 +33,12 @@ class RegisterIntentHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { |
// The TabContents that contains this InfoBar. Weak pointer. |
TabContents* tab_contents_; |
+ // The profile associated with |tab_contents_|. Weak pointer. |
+ Profile* profile_; |
+ |
+ // The cached intent data bundle passed up from the renderer. |
+ WebIntentData intent_; |
+ |
DISALLOW_COPY_AND_ASSIGN(RegisterIntentHandlerInfoBarDelegate); |
}; |