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