Chromium Code Reviews| 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 83ae2fa75956d7e52a58bbd96740db7b0a8a7c24..52158cf7075d9aa7c8b0904a9ae95c48249f47ed 100644 |
| --- a/chrome/browser/intents/register_intent_handler_infobar_delegate.h |
| +++ b/chrome/browser/intents/register_intent_handler_infobar_delegate.h |
| @@ -11,6 +11,7 @@ |
| #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| #include "webkit/glue/web_intent_service_data.h" |
| +class InfoBarTabHelper; |
| class TabContents; |
| class WebIntentsRegistry; |
| @@ -30,6 +31,13 @@ class RegisterIntentHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { |
| virtual string16 GetLinkText() const OVERRIDE; |
| virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; |
| + // This helper method checks the registry to see if the indicated service has |
| + // already been registered. If all registration details are the same, it does |
| + // not show the infobar. |
| + static void MaybeShowIntentInfoBar(InfoBarTabHelper* infobar_helper, |
|
James Hawkins
2011/10/05 18:37:12
Document all the params.
Greg Billock
2011/10/05 22:19:02
Done.
|
| + WebIntentsRegistry* registry, |
| + const WebIntentServiceData& service); |
| + |
| private: |
| // The web intents registry to use. Weak pointer. |
| WebIntentsRegistry* registry_; |