OLD | NEW |
1 <h2 id="manifest">Manifest</h2> | 1 <h2 id="manifest">Manifest</h2> |
2 | 2 |
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="declare_permissions.html">host permissions</a> | 5 along with <a href="declare_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 | 9 |
10 <pre data-filename="manifest.json"> | 10 <pre data-filename="manifest.json"> |
11 { | 11 { |
12 "name": "My extension", | 12 "name": "My extension", |
13 ... | 13 ... |
14 <b>"permissions": [ | 14 <b>"permissions": [ |
15 "cookies", | 15 "cookies", |
16 "*://*.google.com" | 16 "*://*.google.com" |
17 ]</b>, | 17 ]</b>, |
18 ... | 18 ... |
19 } | 19 } |
20 </pre> | 20 </pre> |
21 | 21 |
22 <h2 id="examples"> Examples </h2> | 22 <h2 id="examples"> Examples </h2> |
23 | 23 |
24 <p> | 24 <p> |
25 You can find a simple example | 25 You can find a simple example |
26 of using the cookies API in the | 26 of using the cookies API in the |
27 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/cookies/">examples/api/cookies</a> | 27 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/cookies/">examples/api/cookies</a> |
28 directory. | 28 directory. |
29 For other examples | 29 For other examples |
30 and for help in viewing the source code, | 30 and for help in viewing the source code, |
31 see <a href="samples.html">Samples</a>. | 31 see <a href="samples">Samples</a>. |
32 </p> | 32 </p> |
OLD | NEW |