| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef BASE_NATIVE_LIBRARY_H_ | 5 #ifndef BASE_NATIVE_LIBRARY_H_ |
| 6 #define BASE_NATIVE_LIBRARY_H_ | 6 #define BASE_NATIVE_LIBRARY_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 // This file defines a cross-platform "NativeLibrary" type which represents | 8 // This file defines a cross-platform "NativeLibrary" type which represents |
| 10 // a loadable module. | 9 // a loadable module. |
| 11 | 10 |
| 12 #include "base/base_export.h" | 11 #include "base/base_export.h" |
| 13 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 14 | 13 |
| 15 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 16 #include <windows.h> | 15 #include <windows.h> |
| 17 #elif defined(OS_MACOSX) | 16 #elif defined(OS_MACOSX) |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 76 |
| 78 // Returns the full platform specific name for a native library. | 77 // Returns the full platform specific name for a native library. |
| 79 // For example: | 78 // For example: |
| 80 // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux, | 79 // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux, |
| 81 // "mylib.dylib" on Mac. | 80 // "mylib.dylib" on Mac. |
| 82 BASE_EXPORT string16 GetNativeLibraryName(const string16& name); | 81 BASE_EXPORT string16 GetNativeLibraryName(const string16& name); |
| 83 | 82 |
| 84 } // namespace base | 83 } // namespace base |
| 85 | 84 |
| 86 #endif // BASE_NATIVE_LIBRARY_H_ | 85 #endif // BASE_NATIVE_LIBRARY_H_ |
| OLD | NEW |