Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5191)

Unified Diff: chrome/browser/intents/register_intent_handler_infobar_delegate.h

Issue 7601013: Web Intents: Hook up the register intent InfoBar with the WebIntentsRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit fixes. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/intents/register_intent_handler_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | chrome/browser/intents/register_intent_handler_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698