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

Unified Diff: content/browser/plugin_data_remover_impl.cc

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 | « chrome/browser/pepper_flash_settings_manager.cc ('k') | content/ppapi_plugin/broker_process_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_data_remover_impl.cc
diff --git a/content/browser/plugin_data_remover_impl.cc b/content/browser/plugin_data_remover_impl.cc
index e41f1330f58a5970faf9af3fb3042bbf33a2423d..7981453ed28d5d3f61efa8f4023cd72a93c72d19 100644
--- a/content/browser/plugin_data_remover_impl.cc
+++ b/content/browser/plugin_data_remover_impl.cc
@@ -177,7 +177,7 @@ class PluginDataRemoverImpl::Context
IPC_MESSAGE_HANDLER(PluginHostMsg_ClearSiteDataResult,
OnClearSiteDataResult)
IPC_MESSAGE_HANDLER(PpapiHostMsg_ClearSiteDataResult,
- OnClearSiteDataResult)
+ OnPpapiClearSiteDataResult)
IPC_MESSAGE_UNHANDLED_ERROR()
IPC_END_MESSAGE_MAP()
@@ -232,7 +232,7 @@ class PluginDataRemoverImpl::Context
#else
FilePath plugin_data_path = profile_path.Append(FilePath(plugin_name_));
#endif
- msg = new PpapiMsg_ClearSiteData(plugin_data_path, std::string(),
+ msg = new PpapiMsg_ClearSiteData(0u, plugin_data_path, std::string(),
kClearAllData, max_age);
} else {
msg = new PluginMsg_ClearSiteData(std::string(), kClearAllData, max_age);
@@ -244,7 +244,14 @@ class PluginDataRemoverImpl::Context
}
}
- // Handles the *HostMsg_ClearSiteDataResult message.
+ // Handles the PpapiHostMsg_ClearSiteDataResult message by delegating to the
+ // PluginHostMsg_ClearSiteDataResult handler.
+ void OnPpapiClearSiteDataResult(uint32 request_id, bool success) {
+ DCHECK_EQ(0u, request_id);
+ OnClearSiteDataResult(success);
+ }
+
+ // Handles the PluginHostMsg_ClearSiteDataResult message.
void OnClearSiteDataResult(bool success) {
LOG_IF(ERROR, !success) << "ClearSiteData returned error";
UMA_HISTOGRAM_TIMES("ClearPluginData.time",
« no previous file with comments | « chrome/browser/pepper_flash_settings_manager.cc ('k') | content/ppapi_plugin/broker_process_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698