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 |