Index: content/browser/intents/internal_web_intents_dispatcher.cc |
diff --git a/content/browser/intents/internal_web_intents_dispatcher.cc b/content/browser/intents/internal_web_intents_dispatcher.cc |
index dcb9e63bcf29ff906b8a9d58a5773cb6e169cf47..be07217884232cf0dc38c33222b2503043334081 100644 |
--- a/content/browser/intents/internal_web_intents_dispatcher.cc |
+++ b/content/browser/intents/internal_web_intents_dispatcher.cc |
@@ -5,6 +5,8 @@ |
#include "content/browser/intents/internal_web_intents_dispatcher.h" |
#include "content/browser/intents/intent_injector.h" |
+#include "content/public/browser/web_contents.h" |
+#include "content/public/browser/web_contents_delegate.h" |
#include "webkit/glue/web_intent_data.h" |
#include "webkit/glue/web_intent_reply_data.h" |
@@ -57,3 +59,13 @@ void InternalWebIntentsDispatcher::RegisterReplyNotification( |
const content::WebIntentsDispatcher::ReplyNotification& closure) { |
reply_notifiers_.push_back(closure); |
} |
+ |
+namespace content { |
+ |
+void DispatchInternalIntent(const webkit_glue::WebIntentData& data, |
+ WebContents* target) { |
+ WebIntentsDispatcher* dispatcher = new InternalWebIntentsDispatcher(data); |
+ target->GetDelegate()->WebIntentDispatch(target, dispatcher); |
+} |
+ |
+} // namespace content |