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