OLD | NEW |
1 <!-- BEGIN AUTHORED CONTENT --> | 1 <!-- BEGIN AUTHORED CONTENT --> |
2 <h2 id="manifest">Manifest</h2> | 2 <h2 id="manifest">Manifest</h2> |
3 <p>To use the cookies API, | 3 <p>To use the cookies API, |
4 you must declare the "cookies" permission in your manifest, | 4 you must declare the "cookies" permission in your manifest, |
5 along with <a href="manifest.html#permissions">host permissions</a> | 5 along with <a href="manifest.html#permissions">host permissions</a> |
6 for any hosts whose cookies | 6 for any hosts whose cookies |
7 you want to access. | 7 you want to access. |
8 For example:</p> | 8 For example:</p> |
9 <pre>{ | 9 <pre>{ |
10 "name": "My extension", | 10 "name": "My extension", |
11 ... | 11 ... |
12 <b>"permissions": [ | 12 <b>"permissions": [ |
13 "cookies", | 13 "cookies", |
14 "*://*.google.com" | 14 "*://*.google.com" |
15 ]</b>, | 15 ]</b>, |
16 ... | 16 ... |
17 }</pre> | 17 }</pre> |
18 <h2 id="examples"> Examples </h2> | 18 <h2 id="examples"> Examples </h2> |
19 <p> | 19 <p> |
20 You can find a simple example | 20 You can find a simple example |
21 of using the cookies API in the | 21 of using the cookies API in the |
22 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/cookies/">examples/api/cookies</a> | 22 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/cookies/">examples/api/cookies</a> |
23 directory. | 23 directory. |
24 For other examples | 24 For other examples |
25 and for help in viewing the source code, | 25 and for help in viewing the source code, |
26 see <a href="samples.html">Samples</a>. | 26 see <a href="samples.html">Samples</a>. |
27 </p> | 27 </p> |
28 <!-- END AUTHORED CONTENT --> | 28 <!-- END AUTHORED CONTENT --> |
OLD | NEW |