1// Copyright 2015 The Chromium Authors 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 "base/native_library.h" 6 7#include "base/check.h" 8#include "base/notimplemented.h" 9#include "base/strings/string_piece.h" 10#include "base/strings/string_util.h" 11 12namespace base { 13 14std::string NativeLibraryLoadError::ToString() const { 15 return message; 16} 17 18NativeLibrary LoadNativeLibraryWithOptions(const base::FilePath& library_path, 19 const NativeLibraryOptions& options, 20 NativeLibraryLoadError* error) { 21 NOTIMPLEMENTED(); 22 if (error) 23 error->message = "Not implemented."; 24 return nullptr; 25} 26 27void UnloadNativeLibrary(NativeLibrary library) { 28 NOTIMPLEMENTED(); 29 DCHECK(!library); 30} 31 32void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, 33 const char* name) { 34 NOTIMPLEMENTED(); 35 return nullptr; 36} 37 38std::string GetNativeLibraryName(StringPiece name) { 39 DCHECK(IsStringASCII(name)); 40 return std::string(name); 41} 42 43std::string GetLoadableModuleName(StringPiece name) { 44 return GetNativeLibraryName(name); 45} 46 47} // namespace base 48