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 f9075b4cc084a19893f576c74905daee90a70b82..aa8045b3246dc0334face23a3acbb379f2d2c1c5 100644 |
--- a/chrome/browser/extensions/api/app_runtime/app_runtime_api.h |
+++ b/chrome/browser/extensions/api/app_runtime/app_runtime_api.h |
@@ -5,6 +5,8 @@ |
#ifndef CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
#define CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
+#include <string> |
+ |
#include "base/string16.h" |
#include "chrome/browser/extensions/extension_function.h" |
@@ -28,6 +30,9 @@ class AppEventRouter { |
// data. |
static void DispatchOnLaunchedEvent(Profile* profile, |
const Extension* extension); |
+ |
+ // Dispatches the onRestarted event to the given app, providing a list of |
+ // restored file entries from the previous run. |
static void DispatchOnRestartedEvent( |
Profile* profile, |
const Extension* extension, |
@@ -45,9 +50,9 @@ class AppEventRouter { |
// } |
// } |
- // launchData.intent.data and launchData.intent.postResults are created in a |
- // custom dispatch event in javascript. The FileEntry is created from |
- // |file_system_id| and |base_name|. |
+ // The FileEntry is created from |file_system_id| and |base_name|. |
+ // |handler_id| corresponds to the id of the file_handlers item in the |
+ // manifest that resulted in a match which triggered this launch. |
static void DispatchOnLaunchedEventWithFileEntry( |
Profile* profile, |
const Extension* extension, |
@@ -55,6 +60,15 @@ class AppEventRouter { |
const std::string& mime_type, |
const std::string& file_system_id, |
const std::string& base_name); |
+ |
+ // |handler_id| corresponds to the id of the url_handlers item |
+ // in the manifest that resulted in a match which triggered this launch. |
+ static void DispatchOnLaunchedEventWithUrl( |
+ Profile* profile, |
+ const Extension* extension, |
+ const std::string& handler_id, |
+ const GURL& url, |
+ const GURL& referrer_url); |
}; |
} // namespace extensions |