OLD | NEW |
1 <div id="pageData-name" class="pageData">Storage</div> | 1 <div id="pageData-name" class="pageData">Storage</div> |
2 | 2 |
3 <!-- BEGIN AUTHORED CONTENT --> | 3 <!-- BEGIN AUTHORED CONTENT --> |
4 <p id="classSummary"> | 4 <p id="classSummary"> |
5 Use the <code>chrome.storage</code> module | 5 Use the <code>chrome.storage</code> module |
6 to store, retrieve, and track changes to user data. | 6 to store, retrieve, and track changes to user data. |
7 This API has been optimized | 7 This API has been optimized |
8 to meet the specific storage needs of extensions. | 8 to meet the specific storage needs of extensions. |
9 It provides the same storage capabilities as the | 9 It provides the same storage capabilities as the |
10 <a href="https://developer.mozilla.org/en/DOM/Storage#localStorage">localStorage
API</a> | 10 <a href="https://developer.mozilla.org/en/DOM/Storage#localStorage">localStorage
API</a> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 and if they are filled | 75 and if they are filled |
76 when you put your message in, | 76 when you put your message in, |
77 it gets in line, | 77 it gets in line, |
78 and it's going to be delayed | 78 and it's going to be delayed |
79 by anyone that puts into that tube | 79 by anyone that puts into that tube |
80 enormous amounts of material. | 80 enormous amounts of material. |
81 | 81 |
82 <p>For details on the current limits | 82 <p>For details on the current limits |
83 of the storage API, and what happens | 83 of the storage API, and what happens |
84 when those limits are exceeded, please | 84 when those limits are exceeded, please |
85 see the <a href="#apiReference">API reference.</a> | 85 see the <a href="#apiReference">API reference</a>. |
86 | 86 |
87 | 87 |
88 <h2 id="examples">Examples</h2> | 88 <h2 id="examples">Examples</h2> |
89 | 89 |
90 <p> | 90 <p> |
91 The following example checks for | 91 The following example checks for |
92 CSS code saved by a user on a form, | 92 CSS code saved by a user on a form, |
93 and if found, | 93 and if found, |
94 stores it. | 94 stores it. |
95 </p> | 95 </p> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 } | 135 } |
136 }); | 136 }); |
137 </pre> | 137 </pre> |
138 | 138 |
139 <p> | 139 <p> |
140 You can find examples that use this API on the | 140 You can find examples that use this API on the |
141 <a href="samples.html#sty">Samples page</a>. | 141 <a href="samples.html#sty">Samples page</a>. |
142 </p> | 142 </p> |
143 | 143 |
144 <!-- END AUTHORED CONTENT --> | 144 <!-- END AUTHORED CONTENT --> |
OLD | NEW |