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

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 to an internal Create method. 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..6870903073702760ed52ff248a8850c3fc0af223 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
@@ -57,6 +58,11 @@ class CONTENT_EXPORT WebIntentsDispatcher {
// Register a callback to be notified when SendReplyMessage is called.
// Multiple callbacks may be registered.
virtual void RegisterReplyNotification(const ReplyNotification& closure) = 0;
+
+ // 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);
jam 2012/03/29 17:59:19 nit: by convention this is at the top of the class
Greg Billock 2012/03/29 18:45:08 Done.
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698