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

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: Remove includes 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
« no previous file with comments | « content/common/intents_messages.h ('k') | content/renderer/web_intents_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..762aca17b84544af579faa8b1e29231cba44cf2b 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
@@ -39,6 +40,11 @@ class CONTENT_EXPORT WebIntentsDispatcher {
typedef base::Callback<void(webkit_glue::WebIntentReplyType)>
ReplyNotification;
+ // Create internal (browser-triggered) intent. This will create
+ // a new dispatcher with the passed intent payload |data|. The caller should
+ // manage dispatching it correctly.
+ static WebIntentsDispatcher* Create(const webkit_glue::WebIntentData& data);
+
virtual ~WebIntentsDispatcher() {}
// Get the intent data being dispatched.
« no previous file with comments | « content/common/intents_messages.h ('k') | content/renderer/web_intents_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698