| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/default_plugin.h" | 5 #include "chrome/common/default_plugin.h" |
| 6 | 6 |
| 7 #include "chrome/default_plugin/plugin_main.h" | 7 #include "chrome/default_plugin/plugin_main.h" |
| 8 #include "webkit/glue/plugins/plugin_list.h" | 8 #include "webkit/plugins/npapi/plugin_list.h" |
| 9 | 9 |
| 10 namespace chrome { | 10 namespace chrome { |
| 11 | 11 |
| 12 void RegisterInternalDefaultPlugin() { | 12 void RegisterInternalDefaultPlugin() { |
| 13 const NPAPI::PluginVersionInfo default_plugin = { | 13 const webkit::npapi::PluginVersionInfo default_plugin = { |
| 14 FilePath(kDefaultPluginLibraryName), | 14 FilePath(webkit::npapi::kDefaultPluginLibraryName), |
| 15 L"Default Plug-in", | 15 L"Default Plug-in", |
| 16 L"Provides functionality for installing third-party plug-ins", | 16 L"Provides functionality for installing third-party plug-ins", |
| 17 L"1", | 17 L"1", |
| 18 L"*", | 18 L"*", |
| 19 L"", | 19 L"", |
| 20 L"", | 20 L"", |
| 21 { | 21 { |
| 22 #if !defined(OS_POSIX) || defined(OS_MACOSX) | 22 #if !defined(OS_POSIX) || defined(OS_MACOSX) |
| 23 default_plugin::NP_GetEntryPoints, | 23 default_plugin::NP_GetEntryPoints, |
| 24 #endif | 24 #endif |
| 25 default_plugin::NP_Initialize, | 25 default_plugin::NP_Initialize, |
| 26 default_plugin::NP_Shutdown | 26 default_plugin::NP_Shutdown |
| 27 } | 27 } |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 NPAPI::PluginList::Singleton()->RegisterInternalPlugin(default_plugin); | 30 webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin( |
| 31 default_plugin); |
| 31 } | 32 } |
| 32 | 33 |
| 33 } // namespace chrome | 34 } // namespace chrome |
| OLD | NEW |