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

Unified Diff: content/ppapi_plugin/ppapi_thread.h

Issue 9981015: Add an interface for Flash to clear its data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser tests Created 8 years, 8 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/ppapi_thread.h
diff --git a/content/ppapi_plugin/ppapi_thread.h b/content/ppapi_plugin/ppapi_thread.h
index 0784dd3349f41009ea86e518fdc94b28ea5cd1a2..798b24b649530d4e341d95f69529dcbec40d14d5 100644
--- a/content/ppapi_plugin/ppapi_thread.h
+++ b/content/ppapi_plugin/ppapi_thread.h
@@ -7,9 +7,11 @@
#pragma once
#include <map>
+#include <string>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/file_path.h"
viettrungluu 2012/04/11 23:25:27 Nit: unneeded.
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "base/scoped_native_library.h"
@@ -55,9 +57,19 @@ class PpapiThread : public ChildThread,
void OnMsgLoadPlugin(const FilePath& path);
void OnMsgCreateChannel(base::ProcessHandle host_process_handle,
int renderer_id);
+ void OnMsgClearSiteData(const FilePath& plugin_data_path,
+ const std::string& site,
+ uint64 flags,
+ uint64 max_age);
void OnMsgSetNetworkState(bool online);
void OnPluginDispatcherMessageReceived(const IPC::Message& msg);
+ // 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);
+
// Sets up the channel to the given renderer. On success, returns true and
// fills the given ChannelHandle with the information from the new channel.
bool SetupRendererChannel(base::ProcessHandle host_process_handle,

Powered by Google App Engine
This is Rietveld 408576698