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

Unified Diff: extensions/docs/extension_and_app_types.md

Issue 2863623004: Expand hosted app docs (Closed)
Patch Set: . Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/docs/extension_and_app_types.md
diff --git a/extensions/docs/extension_and_app_types.md b/extensions/docs/extension_and_app_types.md
index d9ce6603c466e20ae10760e0699a6405739bd77c..626a8f1efa23f305cdd44c3562e063ea2592fcf2 100644
--- a/extensions/docs/extension_and_app_types.md
+++ b/extensions/docs/extension_and_app_types.md
@@ -1,7 +1,11 @@
# Extension and App Types
Generally, browser extensions cut across websites and web apps, while apps
-provide more isolated functionality.
+provide more isolated functionality. Read on for specifics.
+
+**This is a technical discussion of extension types for Chromium developers.**
+Extension developers should refer to http://developer.chrome.com/ for
+documentation, usage guidelines and examples.
[TOC]
@@ -46,12 +50,12 @@ initialize a UI in response to Chrome's `chrome.app.runtime.onLaunched` event.
Some apps don't show a window but work in the background instead. Platform apps
can connect to more device types than browser extensions have access to.
-Platform apps are deprecated on non-Chrome OS platforms.
-
A platform app can be identified by the presence of an `app.background` key
in the manifest, which provides the script that runs when the app is
launched.
+*Platform apps are deprecated on non-Chrome OS platforms.*
+
### Packaged app (legacy)
[Legacy (v1) packaged apps](https://developer.chrome.com/extensions/apps)
@@ -63,6 +67,8 @@ A packaged app can be identified by the presence of an
`app.launch.local_url` key in `manifest.json`, which identifies the resource
in the .crx that's loaded when the app is launched.
+*Packaged apps are deprecated everywhere.*
+
### Hosted app
A [hosted app](https://developer.chrome.com/webstore/hosted_apps) is mostly
@@ -72,10 +78,17 @@ allowing the associated URL to bypass the normal Chrome permission prompts for
HTML5 features. Other than metadata in the manifest and an icon, none of a
hosted app's resources come from the extension system.
+A hosted app can declare a BackgroundContents, which outlives the browser and
+can be scripted from all tabs running the hosted app. Specifying
+`allow_js_access: false` is preferred, to allow multiple instances of the hosted
+app to run in different processes.
+
A hosted app can be identified by the presence of an `app.launch.web_url` key in
`manifest.json`, which provides http/https URL that is loaded when the app is
launched.
+*Hosted apps are deprecated on non-Chrome OS platforms.*
+
### Bookmark app
A bookmark app is a simplified hosted app that Chrome creates on demand. When
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698