NPAPI:ClearSiteData: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 5: Line 5:
= Contributors =
= Contributors =


* Last modified: December 7, 2010  
* Last modified: December 20, 2010  
* Authors: Julian Reschke (greenbytes), Dan Witte (Mozilla), Bernhard Bauer (Chromium), Rajesh Gwalani (Adobe), Josh Aas (Mozilla)
* Authors: Julian Reschke (greenbytes), Dan Witte (Mozilla), Bernhard Bauer (Chromium), Rajesh Gwalani (Adobe), Josh Aas (Mozilla)


Line 26: Line 26:
* The <code>flags</code> argument is a bit mask representing the type(s) of data to clear.
* The <code>flags</code> argument is a bit mask representing the type(s) of data to clear.
<pre>
<pre>
#define NP_CLEAR_ALL                0            /* Clear All data */
/* NP_CLEAR_ALL: Clear all private data */
#define NP_CLEAR_COOKIES            1 << 0       /* Clear cookies */
#define NP_CLEAR_ALL        0
#define NP_CLEAR_SITE_PREFS          1 << 1      /* Clear site preferences */
/* NP_CLEAR_CACHE: Clear cached data which can simply be retrieved again as requested. */
#define NP_CLEAR_BROWSING_HISTORY    1 << 2      /* Clear browsing history */
#define NP_CLEAR_CACHE     1 << 0
#define NP_CLEAR_DOWNLOAD_HISTORY    1 << 3      /* Clear download history */
/* More flags may be defined later, this spec will be updated. */
#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>
</pre>
* The <code>site</code> argument is interpreted as follows:  
* The <code>site</code> argument is interpreted as follows:  
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits

Navigation menu