NPAPI:ClearSiteData: Difference between revisions

Jump to navigation Jump to search
Add flag definitions
(Removed issues that have already been clarified in the spec)
(Add flag definitions)
Line 120: Line 120:
Semantics:  
Semantics:  


*<code>flags</code> is a bitset representing which type(s) of data to clear; <code>0</code> means "clear all types".
*<code>flags</code> is a bitset representing which type(s) of data to clear.
*The <code>domain</code> argument is interpreted as follows:  
<pre>#define NP_CLEAR_ALL                0           /* Clear All data */
#define NP_CLEAR_COOKIES            1 << 0      /* Clear cookies */
#define NP_CLEAR_SITE_PREFS          1 << 1      /* Clear site preferences */
#define NP_CLEAR_BROWSING_HISTORY    1 << 2      /* Clear browsing history */
#define NP_CLEAR_DOWNLOAD_HISTORY    1 << 3      /* Clear download history */
#define NP_CLEAR_FORM_HISTORY        1 << 4      /* Clear form and search history */
#define NP_CLEAR_CACHE              1 << 5      /* Clear cache */
#define NP_CLEAR_PASSWORDS          1 << 6      /* Clear saved passwords */
#define NP_CLEAR_LOGINS              1 << 7      /* Clear active logins */
#define NP_CLEAR_PLUGIN_STORAGE      1 << 8      /* Clear plugin local storage */
</pre>
*The <code>origin</code> argument is interpreted as follows:  
**if a hostname of the form "foo.com", data in the "foo.com" domain and all subdomains should be cleared. In this form, <code>domain</code> must be a normalized ACE-encoded hostname, lowercased; must not contain a trailing dot; must not contain scheme, port, or other such fields; and must contain at least one embedded dot;  
**if a hostname of the form "foo.com", data in the "foo.com" domain and all subdomains should be cleared. In this form, <code>domain</code> must be a normalized ACE-encoded hostname, lowercased; must not contain a trailing dot; must not contain scheme, port, or other such fields; and must contain at least one embedded dot;  
**if an IP address (either IPv4 or IPv6), data for that IP should be cleared;  
**if an IP address (either IPv4 or IPv6), data for that IP should be cleared;  
70

edits

Navigation menu