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

Unified Diff: content/public/browser/web_intents_dispatcher.h

Issue 9845003: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Include files 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/public/browser/web_intents_dispatcher.h
diff --git a/content/public/browser/web_intents_dispatcher.h b/content/public/browser/web_intents_dispatcher.h
index 36d55e0a633b08e53eeb5d8758c9de85421d7003..b05def5400b4691d5652068d5398d7b1e4a27b2d 100644
--- a/content/public/browser/web_intents_dispatcher.h
+++ b/content/public/browser/web_intents_dispatcher.h
@@ -7,6 +7,7 @@
#include "base/callback.h"
#include "content/common/content_export.h"
+#include "content/public/browser/render_view_host.h"
#include "webkit/glue/web_intent_reply_data.h"
namespace webkit_glue {
@@ -59,6 +60,14 @@ class CONTENT_EXPORT WebIntentsDispatcher {
virtual void RegisterReplyNotification(const ReplyNotification& closure) = 0;
};
+// This function is used when the intent provider render view is already known,
Greg Billock 2012/03/28 14:21:02 Why not use the internal dispatcher, so the return
benwells 2012/03/29 03:29:18 OK, that makes sense. So instead of this function
+// and there is no need to register a callback. Instead the intent data just
+// needs to be dispatched 'one-way' to the RenderViewHost. |intent_data| is the
+// WebIntentData to inject. |render_view_host| is the RenderViewHost to inject
+// the data into, and must not be NULL.
+CONTENT_EXPORT void DirectDispatchIntent(webkit_glue::WebIntentData intent_data,
+ RenderViewHost* render_view_host);
+
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_
« content/browser/intents/web_intents_direct_dispatch.cc ('K') | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698