Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / common / extensions / docs / templates / intros / downloads.html
blobe5f2ee82e345ec7fb6647a538e166b5813c3c0f6
1 <h2 id='manifest'>Manifest</h2>
3 <p> You must declare the <code>"downloads"</code> permission in the <a
4 href='manifest'>extension manifest</a> to use this API.</p>
6 <pre data-filename="manifest.json">
8 "name": "My extension",
9 ...
10 <b>"permissions": [
11 "downloads"
12 ]</b>,
13 ...
15 </pre>
17 <h2 id='examples'>Examples</h2>
19 <p>You can find simple examples of using the <code>chrome.downloads</code> API in the <a
20 href='http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/downloads/'>examples/api/downloads</a>
21 directory. For other examples and for help in viewing the source code, see <a
22 href='samples'>Samples</a>.</p>