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

Unified Diff: chrome/common/extensions/docs/server2/templates/intros/downloads.html

Issue 10832042: Extensions Docs Server: Doc conversion script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: everything but svn stuff Created 8 years, 5 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/server2/templates/intros/downloads.html
diff --git a/chrome/common/extensions/docs/server2/templates/intros/downloads.html b/chrome/common/extensions/docs/server2/templates/intros/downloads.html
index 69881cf6cc3ed0778333717a4988c4f88a0c8f8e..ee107d10fbfbb207780972d9d6c9eebb65e16dfc 100644
--- a/chrome/common/extensions/docs/server2/templates/intros/downloads.html
+++ b/chrome/common/extensions/docs/server2/templates/intros/downloads.html
@@ -1,10 +1,13 @@
<p>The downloads API allows you to programmatically initiate, monitor,
manipulate, and search for downloads.</p>
+
<h2 id='manifest'>Manifest</h2>
+
<p> You must declare the 'downloads' permission in the <a
href='manifest.html'>extension manifest</a> to use this API, along with <a
href='manifest.html#permissions'>host permissions</a> for any hosts that you
may pass to <a href='#method-download'>download()</a>.</p>
+
<pre>{
'name': 'My extension',
...
@@ -14,14 +17,17 @@ may pass to <a href='#method-download'>download()</a>.</p>
]</b>,
...
}</pre>
+
<p>If the URL's hostname is not specified in the permissions, then <a
href='#method-download'>download()</a> will call its callback with a null
<code>downloadId</code> and set the <a
href='extension.html#property-lastError'>chrome.extensions.lastError</a>
object to indicate that the extension does not have permission to access that
hostname.</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>
+href='samples.html'>Samples</a>.</p>

Powered by Google App Engine
This is Rietveld 408576698