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

Unified Diff: chrome/browser/extensions/api/app/app_api.h

Issue 10828172: Allow platform apps to respond to Web Intents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added WebIntentCallbacks profile keyed class to manage callbacks Created 8 years, 4 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: chrome/browser/extensions/api/app/app_api.h
diff --git a/chrome/browser/extensions/api/app/app_api.h b/chrome/browser/extensions/api/app/app_api.h
index 230d5d8fd2b090b456eba210e8316ffa4274d1d0..861086b41afd9cf6089e3e0815662f9c79365efb 100644
--- a/chrome/browser/extensions/api/app/app_api.h
+++ b/chrome/browser/extensions/api/app/app_api.h
@@ -10,8 +10,8 @@
class Profile;
class GURL;
-namespace webkit_glue {
-struct WebIntentData;
+namespace content {
+class WebIntentsDispatcher;
}
namespace extensions {
@@ -36,6 +36,15 @@ class AppClearAllNotificationsFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
+class PostIntentResponseFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.app.postIntentResponse");
+
+ protected:
+ virtual ~PostIntentResponseFunction() {}
+ virtual bool RunImpl() OVERRIDE;
+};
+
class AppEventRouter {
public:
// Dispatches the onLaunched event to the given app, providing no launch
@@ -71,7 +80,7 @@ class AppEventRouter {
static void DispatchOnLaunchedEventWithWebIntent(
Profile* profile,
const Extension* extension,
- const webkit_glue::WebIntentData web_intent_data);
+ content::WebIntentsDispatcher* intents_dispatcher);
};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app/app_api.cc » ('j') | chrome/browser/extensions/api/app/app_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698