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

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

Issue 23847004: "Redirecting URLs to Packaged Apps" implementation: revised (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Additional minor comments Created 7 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
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 220f0ca13b86067aac139c64429b65f37aea4978..c06a51b191662bec68fe00e43c4e6ff32d065874 100644
--- a/chrome/browser/extensions/api/app_runtime/app_runtime_api.h
+++ b/chrome/browser/extensions/api/app_runtime/app_runtime_api.h
@@ -28,6 +28,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);
@@ -43,15 +46,24 @@ 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,
const std::string& handler_id,
const std::string& mime_type,
const extensions::app_file_handler_util::GrantedFileEntry& file_entry);
+
+ // |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

Powered by Google App Engine
This is Rietveld 408576698