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

Unified Diff: chrome/browser/extensions/api/app_runtime/app_runtime_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: about to submit Created 8 years, 3 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 | « no previous file | chrome/browser/extensions/api/app_runtime/app_runtime_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/app_runtime/app_runtime_api.h
diff --git a/chrome/browser/extensions/api/app_runtime/app_runtime_api.h b/chrome/browser/extensions/api/app_runtime/app_runtime_api.h
index b668f48f1b4bde83a6740e8e2e4846e00e8d3084..1c478e7c53465fe3b09f1a1e1327625ef573aa04 100644
--- a/chrome/browser/extensions/api/app_runtime/app_runtime_api.h
+++ b/chrome/browser/extensions/api/app_runtime/app_runtime_api.h
@@ -6,11 +6,13 @@
#define CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_
#include "base/string16.h"
+#include "chrome/browser/extensions/extension_function.h"
class Profile;
-namespace webkit_glue {
-struct WebIntentData;
+namespace content {
+class WebContents;
+class WebIntentsDispatcher;
}
namespace extensions {
@@ -52,7 +54,17 @@ class AppEventRouter {
static void DispatchOnLaunchedEventWithWebIntent(
Profile* profile,
const Extension* extension,
- const webkit_glue::WebIntentData web_intent_data);
+ content::WebIntentsDispatcher* intents_dispatcher,
+ content::WebContents* source);
+};
+
+class AppRuntimePostIntentResponseFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION_NAME("app.runtime.postIntentResponse");
+
+ protected:
+ virtual ~AppRuntimePostIntentResponseFunction() {}
+ virtual bool RunImpl() OVERRIDE;
};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app_runtime/app_runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698