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

Unified Diff: chrome/common/extensions/docs/static/experimental.downloads.html

Issue 9452019: experimental.downloads extension api docs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 9 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/docs/static/experimental.downloads.html
diff --git a/chrome/common/extensions/docs/static/experimental.downloads.html b/chrome/common/extensions/docs/static/experimental.downloads.html
new file mode 100644
index 0000000000000000000000000000000000000000..131a46b39d2ac9e80d30ea008a6da7271df0c42d
--- /dev/null
+++ b/chrome/common/extensions/docs/static/experimental.downloads.html
@@ -0,0 +1,30 @@
+<p>The downloads API allows you to programmatically initiate downloads. In the
+future, you will also be able to monitor and manipulate downloads.</p>
+
+<h2 id="manifest">Manifest</h2>
+
+<p>The downloads API is currently experimental, so you must declare the
+"experimental" permission to use it. Also, you must specify the hostname of any
+URLs to be downloaded. For example:</p>
+
+<pre>{
+ "name": "Download Selected Links",
+ "description": "Select links on a page and download them.",
+ "version": "0.1",
+ "permissions": [
+ "experimental", "http://*/*", "https://*/*"
+ ]}</pre>
mkearney 2012/03/13 17:51:51 Very small comment to move } down a line. It looks
benjhayden 2012/03/13 18:16:13 Done.
+
+<p>If the URL’s hostname is not specified in the permissions, then the
+chrome.extensions.lastError object will indicate that the extension does not
+have permission to access that hostname.
+<a href="#properties">downloads.ERROR_*</a> are some of the errors that may be
+returned.</p>
+
+<h2 id="examples"> Examples </h2>
+
+<p>You can find simple examples of using the downloads module in the
+<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/downloads/">examples/api/downloads</a>
+directory. For other examples and for help in viewing the source code, see
+<a href="samples.html">Samples</a>.</p>
+
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | chrome/common/extensions/docs/template/api_template.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698