Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1 | <h2 id='manifest'>Manifest</h2> |
| 2 | |
| 3 | <p> You must declare the 'downloads' permission in the <a |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 4 | href='manifest.html'>extension manifest</a> to use this API.</p> |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 5 | |
| 6 | <pre>{ |
| 7 | 'name': 'My extension', |
| 8 | ... |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 9 | <b> 'permissions': ['downloads']</b>, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 10 | ... |
| 11 | }</pre> |
| 12 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 13 | <h2 id='examples'>Examples</h2> |
| 14 | |
| 15 | <p>You can find simple examples of using the downloads module in the <a |
| 16 | href='http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/downloads/'>examples/api/downloads</a> |
| 17 | directory. For other examples and for help in viewing the source code, see <a |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 18 | href='samples.html'>Samples</a>.</p> |