1 // Copyright (c) 2011 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.
5 #include "content/common/plugin_list.h"
9 bool PluginList::ReadWebPluginInfo(const base::FilePath
& filename
,
10 WebPluginInfo
* info
) {
14 void PluginList::GetPluginDirectories(
15 std::vector
<base::FilePath
>* plugin_dirs
) {
18 void PluginList::GetPluginsInDir(const base::FilePath
& dir_path
,
19 std::vector
<base::FilePath
>* plugins
) {
22 bool PluginList::ShouldLoadPluginUsingPluginList(
23 const WebPluginInfo
& info
,
24 std::vector
<WebPluginInfo
>* plugins
) {
25 LOG_IF(ERROR
, PluginList::DebugPluginLoading())
26 << "Considering " << info
.path
.value() << " (" << info
.name
<< ")";
28 if (info
.type
== WebPluginInfo::PLUGIN_TYPE_NPAPI
) {
29 NOTREACHED() << "NPAPI plugins are not supported";
33 VLOG_IF(1, PluginList::DebugPluginLoading()) << "Using " << info
.path
.value();
37 } // namespace content