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

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 static method location 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..8d452e6533ab7640156f6916201a6b21e7ee02bf 100644
--- a/content/browser/intents/internal_web_intents_dispatcher.cc
+++ b/content/browser/intents/internal_web_intents_dispatcher.cc
@@ -5,11 +5,22 @@
#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"
using content::WebContents;
+namespace content {
+
+content::WebIntentsDispatcher* WebIntentsDispatcher::Create(
+ const webkit_glue::WebIntentData& data) {
+ return new InternalWebIntentsDispatcher(data);
+}
+
+// InternalWebIntentsDispatcher
+
InternalWebIntentsDispatcher::InternalWebIntentsDispatcher(
const webkit_glue::WebIntentData& intent)
: intent_(intent),
@@ -57,3 +68,5 @@ void InternalWebIntentsDispatcher::RegisterReplyNotification(
const content::WebIntentsDispatcher::ReplyNotification& closure) {
reply_notifiers_.push_back(closure);
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698