Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: ppapi/api/private/ppp_flash_browser_operations.idl

Issue 10825018: Add GetSitesWithData and FreeSiteList methods to PPP_Flash_BrowserOperations interface and hook the… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/ppapi_plugin/broker_process_dispatcher.cc ('k') | ppapi/c/private/ppp_flash_browser_operations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppp_flash_browser_operations.idl
diff --git a/ppapi/api/private/ppp_flash_browser_operations.idl b/ppapi/api/private/ppp_flash_browser_operations.idl
index 4eeadb7d2c13671303cfcdb6b0dee322a12ad602..acd44328239c4f247490bc3c452f0629ec3eb549 100644
--- a/ppapi/api/private/ppp_flash_browser_operations.idl
+++ b/ppapi/api/private/ppp_flash_browser_operations.idl
@@ -9,7 +9,8 @@
label Chrome {
M20 = 1.0,
- M21 = 1.2
+ M21 = 1.2,
+ M22 = 1.3
};
[assert_size(4)]
@@ -46,29 +47,28 @@ interface PPP_Flash_BrowserOperations {
/**
* This function allows the plugin to implement the "Clear site data" feature.
*
- * @plugin_data_path String containing the directory where the plugin data is
+ * @param[in] plugin_data_path String containing the directory where the
+ * plugin data is
* stored. On UTF16 systems (Windows), this will be encoded as UTF-8. It will
* be an absolute path and will not have a directory separator (slash) at the
* end.
- *
- * @arg site String specifying which site to clear the data for. This will
- * be null to clear data for all sites.
- *
- * @arg flags Currently always 0 in Chrome to clear all data. This may be
- * extended in the future to clear only specific types of data.
- *
- * @arg max_age The maximum age in seconds to clear data for. This allows the
- * plugin to implement "clear past hour" and "clear past data", etc.
+ * @param[in] site String specifying which site to clear the data for. This
+ * will be null to clear data for all sites.
+ * @param[in] flags Currently always 0 in Chrome to clear all data. This may
+ * be extended in the future to clear only specific types of data.
+ * @param[in] max_age The maximum age in seconds to clear data for. This
+ * allows the plugin to implement "clear past hour" and "clear past data",
+ * etc.
*
* @return PP_TRUE on success, PP_FALSE on failure.
*
* See also the NPP_ClearSiteData function in NPAPI.
* https://wiki.mozilla.org/NPAPI:ClearSiteData
*/
- PP_Bool ClearSiteData(str_t plugin_data_path,
- str_t site,
- uint64_t flags,
- uint64_t max_age);
+ PP_Bool ClearSiteData([in] str_t plugin_data_path,
+ [in] str_t site,
+ [in] uint64_t flags,
+ [in] uint64_t max_age);
/**
* Requests the plugin to deauthorize content licenses. It prevents Flash from
@@ -141,4 +141,28 @@ interface PPP_Flash_BrowserOperations {
[in] PP_Flash_BrowserOperations_SettingType setting_type,
[in] uint32_t site_count,
[in, size_is(site_count)] PP_Flash_BrowserOperations_SiteSetting[] sites);
+
+ /**
+ * Returns a list of sites that have stored data, for use with the
+ * "Clear site data" feature.
+ *
+ * @param[in] plugin_data_path String containing the directory where the
+ * plugin data is stored.
+ * @param[out] sites A NULL-terminated array of sites that have stored data.
+ * Use FreeSiteList on the the array when done.
+ *
+ * See also the NPP_GetSitesWithData function in NPAPI:
+ * https://wiki.mozilla.org/NPAPI:ClearSiteData
+ */
+ [version=1.3]
+ void GetSitesWithData([in] str_t plugin_data_path,
+ [out] str_t[] sites);
+
+ /**
+ * Frees the list of sites returned by GetSitesWithData.
+ *
+ * @param[in] sites A NULL-terminated array of strings.
+ */
+ [version=1.3]
+ void FreeSiteList([inout] str_t[] sites);
};
« no previous file with comments | « content/ppapi_plugin/broker_process_dispatcher.cc ('k') | ppapi/c/private/ppp_flash_browser_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698