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

Unified Diff: content/browser/intents/internal_web_intents_dispatcher.cc

Issue 9651020: Pass content-type resources to web intents. Goes through download, then invokes the p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move code embedder-side Created 8 years, 9 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
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

Powered by Google App Engine
This is Rietveld 408576698