OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/native_library.h" | |
6 | |
7 namespace base { | |
8 | |
9 std::string NativeLibraryLoadError::ToString() const { | |
10 return message; | |
11 } | |
12 | |
13 // static | |
14 NativeLibrary LoadNativeLibrary(const base::FilePath& library_path, | |
15 NativeLibraryLoadError* error) { | |
16 return nullptr; | |
17 } | |
18 | |
19 // static | |
20 void UnloadNativeLibrary(NativeLibrary library) { | |
21 delete library; | |
miu
2015/03/27 21:26:26
Rather than delete library, consider:
DCHECK(!l
jfroy
2015/03/30 18:12:49
Done.
| |
22 } | |
23 | |
24 // static | |
25 void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, | |
26 const char* name) { | |
27 return nullptr; | |
miu
2015/03/27 21:26:26
Consider adding NOTREACHED()
jfroy
2015/03/30 18:12:49
Done.
| |
28 } | |
29 | |
30 // static | |
31 string16 GetNativeLibraryName(const string16& name) { | |
32 return name; | |
33 } | |
34 | |
35 } // namespace base | |
OLD | NEW |