Chromium Code Reviews| Index: webkit/plugins/npapi/plugin_lib.cc |
| diff --git a/webkit/plugins/npapi/plugin_lib.cc b/webkit/plugins/npapi/plugin_lib.cc |
| index d801ee0351e7331af2f17b3f9f694913e82ce41f..308832ef27ddb7d31dde9b506a8e4590efdace99 100644 |
| --- a/webkit/plugins/npapi/plugin_lib.cc |
| +++ b/webkit/plugins/npapi/plugin_lib.cc |
| @@ -137,6 +137,24 @@ void PluginLib::NP_Shutdown(void) { |
| entry_points_.np_shutdown(); |
| } |
| +NPError PluginLib::NP_ClearSiteData(const char* site, |
| + uint64 flags, |
| + uint64 max_age) { |
| + DCHECK(initialized_); |
| + if (plugin_funcs_.clearsitedata != 0) { |
|
jam
2011/01/10 18:09:36
nit: the "!= 0" and the brace brackets aren't nece
Bernhard Bauer
2011/01/11 12:43:34
Done.
|
| + return plugin_funcs_.clearsitedata(site, flags, max_age); |
| + } |
| + return NPERR_INVALID_FUNCTABLE_ERROR; |
| +} |
| + |
| +char** PluginLib::NP_GetSitesWithData() { |
| + DCHECK(initialized_); |
| + if (plugin_funcs_.getsiteswithdata != 0) { |
| + return plugin_funcs_.getsiteswithdata(); |
| + } |
| + return NULL; |
| +} |
| + |
| void PluginLib::PreventLibraryUnload() { |
| skip_unload_ = true; |
| } |