summaryrefslogtreecommitdiffstats
path: root/chrome/browser/pepper_flash_settings_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/pepper_flash_settings_manager.h')
-rw-r--r--chrome/browser/pepper_flash_settings_manager.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/pepper_flash_settings_manager.h b/chrome/browser/pepper_flash_settings_manager.h
index 463559b..65bb055 100644
--- a/chrome/browser/pepper_flash_settings_manager.h
+++ b/chrome/browser/pepper_flash_settings_manager.h
@@ -42,6 +42,12 @@ class PepperFlashSettingsManager {
virtual void OnSetSitePermissionCompleted(uint32 request_id,
bool success) {}
+
+ virtual void OnGetSitesWithDataCompleted(
+ uint32 request_id,
+ const std::vector<std::string>& sites) {}
+
+ virtual void OnClearSiteDataCompleted(uint32 request_id, bool success) {}
};
// |client| must outlive this object. It is guaranteed that |client| won't
@@ -84,6 +90,16 @@ class PepperFlashSettingsManager {
uint32 SetSitePermission(PP_Flash_BrowserOperations_SettingType setting_type,
const ppapi::FlashSiteSettings& sites);
+ // Gets a list of sites that have stored data.
+ // Client::OnGetSitesWithDataCompleted() will be called when the operation is
+ // completed.
+ uint32 GetSitesWithData();
+
+ // Clears data for a certain site.
+ // Client::OnClearSiteDataompleted() will be called when the operation is
+ // completed.
+ uint32 ClearSiteData(const std::string& site, uint64 flags, uint64 max_age);
+
private:
// Core does most of the work. It is ref-counted so that its lifespan can be
// independent of the containing object's: