1 <h2 id='manifest'>Manifest</h2> 2 3 <p> You must declare the <code>"downloads"</code> permission in the <a 4 href='manifest'>extension manifest</a> to use this API.</p> 5 6 <pre data-filename="manifest.json"> 7 { 8 "name": "My extension", 9 ... 10 <b>"permissions": [ 11 "downloads" 12 ]</b>, 13 ... 14 } 15 </pre> 16 17 <h2 id='examples'>Examples</h2> 18 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> 23