This source file includes following definitions.
- IsPluginAvailable
- CanLoadPlugin
#include "content/shell/browser/shell_plugin_service_filter.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/common/webplugininfo.h"
namespace content {
ShellPluginServiceFilter::ShellPluginServiceFilter() {}
ShellPluginServiceFilter::~ShellPluginServiceFilter() {}
bool ShellPluginServiceFilter::IsPluginAvailable(
int render_process_id,
int render_frame_id,
const void* context,
const GURL& url,
const GURL& policy_url,
WebPluginInfo* plugin) {
return plugin->name == base::ASCIIToUTF16("WebKit Test PlugIn");
}
bool ShellPluginServiceFilter::CanLoadPlugin(int render_process_id,
const base::FilePath& path) {
return true;
}
}