Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: base/native_library.h

Issue 6736019: Base: A few more files using BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/metrics/stats_table.h ('k') | base/process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library.h
===================================================================
--- base/native_library.h (revision 79303)
+++ base/native_library.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,6 +9,7 @@
// This file defines a cross-platform "NativeLibrary" type which represents
// a loadable module.
+#include "base/base_api.h"
#include "build/build_config.h"
#if defined(OS_WIN)
@@ -52,7 +53,7 @@
// Loads a native library from disk. Release it with UnloadNativeLibrary when
// you're done.
-NativeLibrary LoadNativeLibrary(const FilePath& library_path);
+BASE_API NativeLibrary LoadNativeLibrary(const FilePath& library_path);
#if defined(OS_WIN)
// Loads a native library from disk. Release it with UnloadNativeLibrary when
@@ -60,21 +61,22 @@
// This function retrieves the LoadLibrary function exported from kernel32.dll
// and calls it instead of directly calling the LoadLibrary function via the
// import table.
-NativeLibrary LoadNativeLibraryDynamically(const FilePath& library_path);
+BASE_API NativeLibrary LoadNativeLibraryDynamically(
+ const FilePath& library_path);
#endif // OS_WIN
// Unloads a native library.
-void UnloadNativeLibrary(NativeLibrary library);
+BASE_API void UnloadNativeLibrary(NativeLibrary library);
// Gets a function pointer from a native library.
-void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
- const char* name);
+BASE_API void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
+ const char* name);
// Returns the full platform specific name for a native library.
// For example:
// "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux,
// "mylib.dylib" on Mac.
-string16 GetNativeLibraryName(const string16& name);
+BASE_API string16 GetNativeLibraryName(const string16& name);
} // namespace base
« no previous file with comments | « base/metrics/stats_table.h ('k') | base/process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698