blob: 84582dd734e3bbb9855f2ad096b6889fa964b38d [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001<h2 id='manifest'>Manifest</h2>
2
3<p> You must declare the 'downloads' permission in the <a
Ben Murdochbb1529c2013-08-08 10:24:53 +01004href='manifest.html'>extension manifest</a> to use this API.</p>
Torne (Richard Coles)58218062012-11-14 11:43:16 +00005
6<pre>{
7 'name': 'My extension',
8 ...
Ben Murdochbb1529c2013-08-08 10:24:53 +01009<b> 'permissions': ['downloads']</b>,
Torne (Richard Coles)58218062012-11-14 11:43:16 +000010 ...
11}</pre>
12
Torne (Richard Coles)58218062012-11-14 11:43:16 +000013<h2 id='examples'>Examples</h2>
14
15<p>You can find simple examples of using the downloads module in the <a
16href='http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/downloads/'>examples/api/downloads</a>
17directory. For other examples and for help in viewing the source code, see <a
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000018href='samples.html'>Samples</a>.</p>