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

Side by Side 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: Prevent interception for POSTs sooner; prevent when prerendering. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use the <code>chrome.app.runtime</code> API to manage the app lifecycle. 5 // Use the <code>chrome.app.runtime</code> API to manage the app lifecycle.
6 // The app runtime manages app installation, controls the event page, and can 6 // The app runtime manages app installation, controls the event page, and can
7 // shut down the app at anytime. 7 // shut down the app at anytime.
8 namespace app.runtime { 8 namespace app.runtime {
9 9
10 [inline_doc] dictionary LaunchItem { 10 [inline_doc] dictionary LaunchItem {
11 // FileEntry for the file. 11 // FileEntry for the file.
12 [instanceOf=FileEntry] object entry; 12 [instanceOf=FileEntry] object entry;
13 13
14 // The MIME type of the file. 14 // The MIME type of the file.
15 DOMString type; 15 DOMString type;
16 }; 16 };
17 17
18 // Optional data for the launch. 18 // Optional data for the launch.
19 [inline_doc] dictionary LaunchData { 19 [inline_doc] dictionary LaunchData {
20 // The id of the file handler that the app is being invoked with. 20 // The ID of the file or URL handler that the app is being invoked with.
21 // Handler IDs are the top-level keys in the <code>file_handlers</code>
22 // and/or <code>url_handlers</code> dictionaries in the manifest.
21 DOMString? id; 23 DOMString? id;
22 24
25 // The file entries for <code>onLaunched</code> triggered by a matching
26 // file handler from the <code>file_handlers</code> manifest key.
23 LaunchItem[]? items; 27 LaunchItem[]? items;
28
29 // The URL for <code>onLaunched</code> triggered by a matching URL handler
30 // from the <code>url_handlers</code> manifest key.
31 DOMString? url;
32
33 // The referrer URL for <code>onLaunched</code> triggered by a matching
34 // URL handler from the <code>url_handlers</code> manifest key.
35 DOMString? referrerUrl;
24 }; 36 };
25 37
26 interface Events { 38 interface Events {
27 // Fired when an app is launched from the launcher. 39 // Fired when an app is launched from the launcher.
28 static void onLaunched(optional LaunchData launchData); 40 static void onLaunched(optional LaunchData launchData);
29 41
30 // Fired at Chrome startup to apps that were running when Chrome last shut 42 // Fired at Chrome startup to apps that were running when Chrome last shut
31 // down. 43 // down.
32 static void onRestarted(); 44 static void onRestarted();
33 }; 45 };
34 }; 46 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698