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

Unified Diff: chrome/browser/pepper_flash_settings_manager.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: review 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: chrome/browser/pepper_flash_settings_manager.h
diff --git a/chrome/browser/pepper_flash_settings_manager.h b/chrome/browser/pepper_flash_settings_manager.h
index 463559b3f30102aa86004528ade00fd968da048d..65bb055d3623381ff987ba91001593307019989a 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:
« no previous file with comments | « no previous file | chrome/browser/pepper_flash_settings_manager.cc » ('j') | content/ppapi_plugin/broker_process_dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698