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

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

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/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..fa127dadfb2466098046190b33b8fa68ae73a2d0 100644
--- a/content/public/browser/web_intents_dispatcher.h
+++ b/content/public/browser/web_intents_dispatcher.h
@@ -17,6 +17,7 @@ struct WebIntentData;
namespace content {
class WebContents;
+class WebContentsDelegate;
// This class is the coordinator for dispatching web intents and seeing that
// return messages are sent to the correct invoking context. The WebContents
@@ -59,6 +60,13 @@ class CONTENT_EXPORT WebIntentsDispatcher {
virtual void RegisterReplyNotification(const ReplyNotification& closure) = 0;
};
+// Create and dispatch an internal (embedder-triggered) intent. This will create
+// a new dispatcher with the passed intent payload |data| and dispatch it to the
+// delegate of the provided WebContents |target|.
+CONTENT_EXPORT void DispatchInternalIntent(
jam 2012/03/29 02:33:51 perhaps this should be a static Create inside WebI
Greg Billock 2012/03/29 17:33:03 Sounds good. I was trying to keep dispatching with
+ const webkit_glue::WebIntentData& data,
+ WebContents* target);
+
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698