Chromium Code Reviews| Index: base/native_library.h |
| diff --git a/base/native_library.h b/base/native_library.h |
| index b4f3a3cd1ba267000848b09c0ee9d8af7983387f..2bcf0885b6643c6d6e0786073b8276f6b64d0fb7 100644 |
| --- a/base/native_library.h |
| +++ b/base/native_library.h |
| @@ -65,12 +65,31 @@ struct BASE_EXPORT NativeLibraryLoadError { |
| #endif // OS_WIN |
| }; |
| +struct BASE_EXPORT NativeLibraryOptions { |
| + NativeLibraryOptions() {} |
|
Primiano Tucci (use gerrit)
2016/08/25 21:10:53
didn't catchup with C++11 too much. Is the copy ct
Ken Rockot(use gerrit already)
2016/08/25 21:25:01
It's not necessary, but given the confusion I adde
|
| + |
| + // If |true|, a loaded library is required to prefer local symbol resolution |
| + // before considering global symbols. Note that this is already the default |
| + // behavior on most systems. Setting this to |false| does not guarantee the |
| + // inverse, i.e., it does not force a preference for global symbols over local |
| + // ones. |
| + bool prefer_own_symbols = false; |
| +}; |
| + |
| // Loads a native library from disk. Release it with UnloadNativeLibrary when |
| // you're done. Returns NULL on failure. |
| // If |error| is not NULL, it may be filled in on load error. |
| BASE_EXPORT NativeLibrary LoadNativeLibrary(const FilePath& library_path, |
| NativeLibraryLoadError* error); |
| +// Loads a native library from disk. Release it with UnloadNativeLibrary when |
| +// you're done. Returns NULL on failure. |
| +// If |error| is not NULL, it may be filled in on load error. |
| +BASE_EXPORT NativeLibrary LoadNativeLibraryWithOptions( |
| + const FilePath& library_path, |
| + const NativeLibraryOptions& options, |
| + NativeLibraryLoadError* error); |
| + |
| #if defined(OS_WIN) |
| // Loads a native library from disk. Release it with UnloadNativeLibrary when |
| // you're done. |