- add sources.
[platform/framework/web/crosswalk.git] / src / content / shell / browser / shell_plugin_service_filter.cc
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
10 namespace content {
11
12 ShellPluginServiceFilter::ShellPluginServiceFilter() {}
13
14 ShellPluginServiceFilter::~ShellPluginServiceFilter() {}
15
16 bool ShellPluginServiceFilter::IsPluginAvailable(
17     int render_process_id,
18     int render_view_id,
19     const void* context,
20     const GURL& url,
21     const GURL& policy_url,
22     WebPluginInfo* plugin) {
23   return plugin->name == ASCIIToUTF16("WebKit Test PlugIn");
24 }
25
26 bool ShellPluginServiceFilter::CanLoadPlugin(int render_process_id,
27                                              const base::FilePath& path) {
28   return true;
29 }
30
31 }  // namespace content