summaryrefslogtreecommitdiffstats
path: root/chrome/browser/pepper_flash_settings_manager.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 22:46:53 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 22:46:53 +0000
commit951ef0bdf8d1c272afb3bdce4dd3c39ffaab2fee (patch)
tree4efe0b6a635af851e6a647a0870fd7ccc742f658 /chrome/browser/pepper_flash_settings_manager.h
parent19d32935fa9b8802f518b07c12c81e2d047e23a7 (diff)
downloadchromium_src-951ef0bdf8d1c272afb3bdce4dd3c39ffaab2fee.zip
chromium_src-951ef0bdf8d1c272afb3bdce4dd3c39ffaab2fee.tar.gz
chromium_src-951ef0bdf8d1c272afb3bdce4dd3c39ffaab2fee.tar.bz2
Add GetSitesWithData and FreeSiteList methods to PPP_Flash_BrowserOperations interface and hook them up in PepperFlashSettingsManager.
BUG=132409 TEST=none Review URL: https://chromiumcodereview.appspot.com/10825018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148839 0039d316-1c4b-4281-b951-d872f2087c98
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: