1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "content/shell/browser/shell_plugin_service_filter.h"
6
7#include "base/strings/utf_string_conversions.h"
8#include "content/public/common/webplugininfo.h"
9
10namespace content {
11
12ShellPluginServiceFilter::ShellPluginServiceFilter() {}
13
14ShellPluginServiceFilter::~ShellPluginServiceFilter() {}
15
16bool ShellPluginServiceFilter::IsPluginAvailable(
17    int render_process_id,
18    int render_frame_id,
19    const void* context,
20    const GURL& url,
21    const GURL& policy_url,
22    WebPluginInfo* plugin) {
23  return plugin->name == base::ASCIIToUTF16("WebKit Test PlugIn");
24}
25
26bool ShellPluginServiceFilter::CanLoadPlugin(int render_process_id,
27                                             const base::FilePath& path) {
28  return true;
29}
30
31}  // namespace content
32