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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/render_view_host.h"
10 #include "webkit/glue/web_intent_reply_data.h" 11 #include "webkit/glue/web_intent_reply_data.h"
11 12
12 namespace webkit_glue { 13 namespace webkit_glue {
13 enum WebIntentReplyType; 14 enum WebIntentReplyType;
14 struct WebIntentData; 15 struct WebIntentData;
15 } 16 }
16 17
17 namespace content { 18 namespace content {
18 19
19 class WebContents; 20 class WebContents;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // the intent. Deletes the object; it should not be used after this call 53 // the intent. Deletes the object; it should not be used after this call
53 // returns. Calls the reply notifications, if any are registered. 54 // returns. Calls the reply notifications, if any are registered.
54 virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type, 55 virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type,
55 const string16& data) = 0; 56 const string16& data) = 0;
56 57
57 // Register a callback to be notified when SendReplyMessage is called. 58 // Register a callback to be notified when SendReplyMessage is called.
58 // Multiple callbacks may be registered. 59 // Multiple callbacks may be registered.
59 virtual void RegisterReplyNotification(const ReplyNotification& closure) = 0; 60 virtual void RegisterReplyNotification(const ReplyNotification& closure) = 0;
60 }; 61 };
61 62
63 // 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
64 // and there is no need to register a callback. Instead the intent data just
65 // needs to be dispatched 'one-way' to the RenderViewHost. |intent_data| is the
66 // WebIntentData to inject. |render_view_host| is the RenderViewHost to inject
67 // the data into, and must not be NULL.
68 CONTENT_EXPORT void DirectDispatchIntent(webkit_glue::WebIntentData intent_data,
69 RenderViewHost* render_view_host);
70
62 } // namespace content 71 } // namespace content
63 72
64 #endif // CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_ 73 #endif // CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_
OLDNEW
« 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