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

Unified Diff: content/ppapi_plugin/broker_process_dispatcher.h

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
Index: content/ppapi_plugin/broker_process_dispatcher.h
diff --git a/content/ppapi_plugin/broker_process_dispatcher.h b/content/ppapi_plugin/broker_process_dispatcher.h
index 486ce4db848c0d7cb511e90527db32bc31edfc35..46787452486145276607274a27460095d068b85d 100644
--- a/content/ppapi_plugin/broker_process_dispatcher.h
+++ b/content/ppapi_plugin/broker_process_dispatcher.h
@@ -32,7 +32,10 @@ class BrokerProcessDispatcher
const ppapi::FlashSiteSettings& sites);
private:
- void OnMsgClearSiteData(const FilePath& plugin_data_path,
+ void OnMsgGetSitesWithData(uint32 request_id,
+ const FilePath& plugin_data_path);
+ void OnMsgClearSiteData(uint32 request_id,
+ const FilePath& plugin_data_path,
const std::string& site,
uint64 flags,
uint64 max_age);
@@ -54,11 +57,16 @@ class BrokerProcessDispatcher
PP_Flash_BrowserOperations_SettingType setting_type,
const ppapi::FlashSiteSettings& sites);
+ // Returns a list of sites that have data stored.
+ void GetSitesWithData(const FilePath& plugin_data_path,
+ std::vector<std::string>* sites);
+
// Requests that the plugin clear data, returning true on success.
bool ClearSiteData(const FilePath& plugin_data_path,
const std::string& site,
uint64 flags,
uint64 max_age);
+
bool DeauthorizeContentLicenses(const FilePath& plugin_data_path);
bool SetDefaultPermission(const FilePath& plugin_data_path,
PP_Flash_BrowserOperations_SettingType setting_type,
@@ -70,6 +78,7 @@ class BrokerProcessDispatcher
PP_GetInterface_Func get_plugin_interface_;
+ const PPP_Flash_BrowserOperations_1_3* flash_browser_operations_1_3_;
const PPP_Flash_BrowserOperations_1_2* flash_browser_operations_1_2_;
const PPP_Flash_BrowserOperations_1_0* flash_browser_operations_1_0_;

Powered by Google App Engine
This is Rietveld 408576698