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

Unified Diff: chrome/browser/extensions/api/app_runtime/app_runtime_api.h

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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_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 0611c49ae573542fa25cb1bd55ed8c1a0b94e239..84ade6303e23c58889d070000ee14cfce6424e6d 100644
--- a/chrome/browser/extensions/api/app_runtime/app_runtime_api.h
+++ b/chrome/browser/extensions/api/app_runtime/app_runtime_api.h
@@ -12,7 +12,6 @@ class Profile;
namespace content {
class WebContents;
-class WebIntentsDispatcher;
}
namespace extensions {
@@ -28,11 +27,11 @@ class AppEventRouter {
static void DispatchOnRestartedEvent(Profile* profile,
const Extension* extension);
+ // TODO(benwells): Update this comment, it is out of date.
// Dispatches the onLaunched event to the given app, providing launch data of
// the form:
// {
// "intent" : {
- // "action" : |action|,
// "type" : "chrome-extension://fileentry",
// "data" : a FileEntry,
// "postResults" : a null function,
@@ -46,30 +45,10 @@ class AppEventRouter {
static void DispatchOnLaunchedEventWithFileEntry(
Profile* profile,
const Extension* extension,
- const string16& action,
const std::string& handler_id,
const std::string& mime_type,
const std::string& file_system_id,
const std::string& base_name);
-
- // Dispatches the onLaunched event to the app implemented by |extension|
- // running in |profile|. The event parameter launchData will have a field
- // called intent, populated by |web_intent_data|.
- static void DispatchOnLaunchedEventWithWebIntent(
- Profile* profile,
- const Extension* extension,
- content::WebIntentsDispatcher* intents_dispatcher,
- content::WebContents* source);
-};
-
-class AppRuntimePostIntentResponseFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("app.runtime.postIntentResponse",
- APP_RUNTIME_POSTINTENTRESPONSE)
-
- protected:
- virtual ~AppRuntimePostIntentResponseFunction() {}
- virtual bool RunImpl() OVERRIDE;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698