1// Copyright (c) 2010 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 "chrome/common/default_plugin.h"
6
7#include "chrome/default_plugin/plugin_main.h"
8#include "webkit/plugins/npapi/plugin_list.h"
9
10namespace chrome {
11
12void RegisterInternalDefaultPlugin() {
13  const webkit::npapi::PluginEntryPoints entry_points = {
14#if !defined(OS_POSIX) || defined(OS_MACOSX)
15    default_plugin::NP_GetEntryPoints,
16#endif
17    default_plugin::NP_Initialize,
18    default_plugin::NP_Shutdown
19  };
20
21  webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin(
22      FilePath(webkit::npapi::kDefaultPluginLibraryName),
23      "Default Plug-in",
24      "Provides functionality for installing third-party plug-ins",
25      "*",
26      entry_points);
27}
28
29}  // namespace chrome
30