| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "base/native_library.h" | 5 #include "base/native_library.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace base { | 9 namespace base { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 // static | 24 // static |
| 25 void UnloadNativeLibrary(NativeLibrary library) { | 25 void UnloadNativeLibrary(NativeLibrary library) { |
| 26 NOTIMPLEMENTED(); | 26 NOTIMPLEMENTED(); |
| 27 DCHECK(!library); | 27 DCHECK(!library); |
| 28 } | 28 } |
| 29 | 29 |
| 30 // static | 30 // static |
| 31 void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, | 31 void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, |
| 32 const char* name) { | 32 StringPiece name) { |
| 33 NOTIMPLEMENTED(); | 33 NOTIMPLEMENTED(); |
| 34 return nullptr; | 34 return nullptr; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // static | 37 // static |
| 38 string16 GetNativeLibraryName(const string16& name) { | 38 string16 GetNativeLibraryName(StringPiece16 name) { |
| 39 return name; | 39 return name.as_string(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace base | 42 } // namespace base |
| OLD | NEW |