diff options
Diffstat (limited to 'webkit/glue/plugins/plugin_lib_linux.cc')
-rw-r--r-- | webkit/glue/plugins/plugin_lib_linux.cc | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/webkit/glue/plugins/plugin_lib_linux.cc b/webkit/glue/plugins/plugin_lib_linux.cc index 36de951..c88ffee 100644 --- a/webkit/glue/plugins/plugin_lib_linux.cc +++ b/webkit/glue/plugins/plugin_lib_linux.cc @@ -19,36 +19,12 @@ namespace NPAPI { -// static -PluginLib::NativeLibrary PluginLib::LoadNativeLibrary( - const FilePath& library_path) { - void* dl = dlopen(library_path.value().c_str(), RTLD_LAZY); - if (!dl) - NOTREACHED() << "dlopen failed: " << dlerror(); - - return dl; -} - -// static -void PluginLib::UnloadNativeLibrary(NativeLibrary library) { - int ret = dlclose(library); - if (ret < 0) - NOTREACHED() << "dlclose failed: " << dlerror(); -} - -// static -void* PluginLib::GetFunctionPointerFromNativeLibrary( - NativeLibrary library, - NativeLibraryFunctionNameType name) { - return dlsym(library, name); -} - bool PluginLib::ReadWebPluginInfo(const FilePath& filename, WebPluginInfo* info) { // The file to reference is: // http://mxr.mozilla.org/firefox/source/modules/plugin/base/src/nsPluginsDirUnix.cpp - void* dl = LoadNativeLibrary(filename); + void* dl = base::LoadNativeLibrary(filename); if (!dl) return false; |