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

Unified Diff: chrome/common/extensions/api/app_runtime.idl

Issue 23847004: "Redirecting URLs to Packaged Apps" implementation: revised (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved URL handler finding from UI to IO thread: avoid unnecessary throttle creation 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/common/extensions/api/app_runtime.idl
diff --git a/chrome/common/extensions/api/app_runtime.idl b/chrome/common/extensions/api/app_runtime.idl
index da8ddb885a9fdff4924676a59a7743a08a837db5..605414608ecb4fe11c235df723f681190c5bd4ab 100644
--- a/chrome/common/extensions/api/app_runtime.idl
+++ b/chrome/common/extensions/api/app_runtime.idl
@@ -15,12 +15,26 @@ namespace app.runtime {
DOMString type;
};
- // Optional data for the launch.
+ // Optional data for the launch. Either <code>items</code>, or
+ // the pair <code>(url, referrerUrl)</code> can be present for any given
+ // launch.
[inline_doc] dictionary LaunchData {
- // The id of the file handler that the app is being invoked with.
+ // The ID of the file or URL handler that the app is being invoked with.
+ // Handler IDs are the top-level keys in the <code>file_handlers</code>
+ // and/or <code>url_handlers</code> dictionaries in the manifest.
DOMString? id;
+ // The file entries for the <code>onLaunched</code> event triggered by a
+ // matching file handler in the <code>file_handlers</code> manifest key.
LaunchItem[]? items;
+
+ // The URL for the <code>onLaunched</code> event triggered by a matching
+ // URL handler in the <code>url_handlers</code> manifest key.
+ DOMString? url;
+
+ // The referrer URL for the <code>onLaunched</code> event triggered by a
+ // matching URL handler in the <code>url_handlers</code> manifest key.
+ DOMString? referrerUrl;
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698