diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-05 15:34:00 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-05 15:34:00 +0000 |
commit | 0bea7254836d17e3f1e278cbd52e8b8816c49a48 (patch) | |
tree | eb16c01ad0143fad583cd60a87828fd90c94f61a /base/platform_file.h | |
parent | 93f3edc8adc1db9e3d1deebde0ec58d15b7e1a91 (diff) | |
download | chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.zip chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.tar.gz chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.tar.bz2 |
Rename BASE_API to BASE_EXPORT.
R=rvargas
Review URL: http://codereview.chromium.org/7461141
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file.h')
-rw-r--r-- | base/platform_file.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/base/platform_file.h b/base/platform_file.h index afe909a..856ec8e 100644 --- a/base/platform_file.h +++ b/base/platform_file.h @@ -13,7 +13,7 @@ #include <string> -#include "base/base_api.h" +#include "base/base_export.h" #include "base/basictypes.h" #include "base/file_path.h" #include "base/time.h" @@ -81,7 +81,7 @@ enum PlatformFileError { // make sure to update all functions that use it in file_util_{win|posix}.cc // too, and the ParamTraits<base::PlatformFileInfo> implementation in // chrome/common/common_param_traits.cc. -struct BASE_API PlatformFileInfo { +struct BASE_EXPORT PlatformFileInfo { PlatformFileInfo(); ~PlatformFileInfo(); @@ -108,39 +108,40 @@ struct BASE_API PlatformFileInfo { // true if a new file was created [or an old one truncated to zero length to // simulate a new file, which can happen with PLATFORM_FILE_CREATE_ALWAYS], and // false otherwise. |error_code| can be NULL. -BASE_API PlatformFile CreatePlatformFile(const FilePath& name, - int flags, - bool* created, - PlatformFileError* error_code); +BASE_EXPORT PlatformFile CreatePlatformFile(const FilePath& name, + int flags, + bool* created, + PlatformFileError* error_code); // Closes a file handle. Returns |true| on success and |false| otherwise. -BASE_API bool ClosePlatformFile(PlatformFile file); +BASE_EXPORT bool ClosePlatformFile(PlatformFile file); // Reads the given number of bytes (or until EOF is reached) starting with the // given offset. Returns the number of bytes read, or -1 on error. -BASE_API int ReadPlatformFile(PlatformFile file, int64 offset, - char* data, int size); +BASE_EXPORT int ReadPlatformFile(PlatformFile file, int64 offset, + char* data, int size); // Writes the given buffer into the file at the given offset, overwritting any // data that was previously there. Returns the number of bytes written, or -1 // on error. -BASE_API int WritePlatformFile(PlatformFile file, int64 offset, - const char* data, int size); +BASE_EXPORT int WritePlatformFile(PlatformFile file, int64 offset, + const char* data, int size); // Truncates the given file to the given length. If |length| is greater than // the current size of the file, the file is extended with zeros. If the file // doesn't exist, |false| is returned. -BASE_API bool TruncatePlatformFile(PlatformFile file, int64 length); +BASE_EXPORT bool TruncatePlatformFile(PlatformFile file, int64 length); // Flushes the buffers of the given file. -BASE_API bool FlushPlatformFile(PlatformFile file); +BASE_EXPORT bool FlushPlatformFile(PlatformFile file); // Touches the given file. -BASE_API bool TouchPlatformFile(PlatformFile file, const Time& last_access_time, - const Time& last_modified_time); +BASE_EXPORT bool TouchPlatformFile(PlatformFile file, + const Time& last_access_time, + const Time& last_modified_time); // Returns some information for the given file. -BASE_API bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info); +BASE_EXPORT bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info); // Use this class to pass ownership of a PlatformFile to a receiver that may or // may not want to accept it. This class does not own the storage for the @@ -162,7 +163,7 @@ BASE_API bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info); // ClosePlatformFile(file); // } // -class BASE_API PassPlatformFile { +class BASE_EXPORT PassPlatformFile { public: explicit PassPlatformFile(PlatformFile* value) : value_(value) { } |