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.
4
5#include "content/common/plugin_list.h"
6
7namespace content {
8
9bool PluginList::ReadWebPluginInfo(const base::FilePath& filename,
10                                   WebPluginInfo* info) {
11  return false;
12}
13
14void PluginList::GetPluginDirectories(
15    std::vector<base::FilePath>* plugin_dirs) {
16}
17
18void PluginList::GetPluginsInDir(const base::FilePath& dir_path,
19                                 std::vector<base::FilePath>* plugins) {
20}
21
22bool PluginList::ShouldLoadPluginUsingPluginList(
23    const WebPluginInfo& info,
24    std::vector<WebPluginInfo>* plugins) {
25  LOG_IF(ERROR, PluginList::DebugPluginLoading())
26      << "Considering " << info.path.value() << " (" << info.name << ")";
27
28  if (info.type == WebPluginInfo::PLUGIN_TYPE_NPAPI) {
29    NOTREACHED() << "NPAPI plugins are not supported";
30    return false;
31  }
32
33  VLOG_IF(1, PluginList::DebugPluginLoading()) << "Using " << info.path.value();
34  return true;
35}
36
37}  // namespace content
38