Lines Matching refs:BASE_API
29 #include "base/base_api.h"
52 BASE_API bool EndsWithSeparator(const FilePath& path);
56 BASE_API bool EnsureEndsWithSeparator(FilePath* path);
60 BASE_API bool AbsolutePath(FilePath* path);
64 BASE_API bool ContainsPath(const FilePath& parent, const FilePath& child);
77 BASE_API int CountFilesCreatedAfter(const FilePath& path,
85 BASE_API int64 ComputeDirectorySize(const FilePath& root_path);
93 BASE_API int64 ComputeFilesSize(const FilePath& directory,
104 BASE_API bool Delete(const FilePath& path, bool recursive);
112 BASE_API bool DeleteAfterReboot(const FilePath& path);
119 BASE_API bool Move(const FilePath& from_path, const FilePath& to_path);
126 BASE_API bool ReplaceFile(const FilePath& from_path, const FilePath& to_path);
129 BASE_API bool CopyFile(const FilePath& from_path, const FilePath& to_path);
138 BASE_API bool CopyDirectory(const FilePath& from_path, const FilePath& to_path,
143 BASE_API bool PathExists(const FilePath& path);
146 BASE_API bool PathIsWritable(const FilePath& path);
149 BASE_API bool DirectoryExists(const FilePath& path);
155 BASE_API bool GetFileCreationLocalTime(const std::wstring& filename,
159 BASE_API bool GetFileCreationLocalTimeFromHandle(HANDLE file_handle,
165 BASE_API bool ContentsEqual(const FilePath& filename1,
170 BASE_API bool TextContentsEqual(const FilePath& filename1,
177 BASE_API bool ReadFileToString(const FilePath& path, std::string* contents);
199 BASE_API bool ResolveShortcut(FilePath* path);
210 BASE_API bool CreateShortcutLink(const wchar_t *source,
226 BASE_API bool UpdateShortcutLink(const wchar_t *source,
237 BASE_API bool TaskbarPinShortcutLink(const wchar_t* shortcut);
241 BASE_API bool TaskbarUnpinShortcutLink(const wchar_t* shortcut);
247 BASE_API bool CopyAndDeleteDirectory(const FilePath& from_path,
252 BASE_API bool IsDirectoryEmpty(const FilePath& dir_path);
257 BASE_API bool GetTempDir(FilePath* path);
260 BASE_API bool GetShmemTempDir(FilePath* path);
264 BASE_API FilePath GetHomeDir();
269 BASE_API bool CreateTemporaryFile(FilePath* path);
272 BASE_API bool CreateTemporaryFileInDir(const FilePath& dir,
278 BASE_API FILE* CreateAndOpenTemporaryFile(FilePath* path);
280 BASE_API FILE* CreateAndOpenTemporaryShmemFile(FilePath* path);
282 BASE_API FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir,
289 BASE_API bool CreateNewTempDirectory(const FilePath::StringType& prefix,
295 BASE_API bool CreateTemporaryDirInDir(const FilePath& base_dir,
302 BASE_API bool CreateDirectory(const FilePath& full_path);
305 BASE_API bool GetFileSize(const FilePath& file_path, int64* file_size);
308 BASE_API bool IsDot(const FilePath& path);
311 BASE_API bool IsDotDot(const FilePath& path);
319 BASE_API bool NormalizeFilePath(const FilePath& path, FilePath* real_path);
326 BASE_API bool NormalizeToNativeFilePath(const FilePath& path,
331 BASE_API bool GetFileInfo(const FilePath& file_path,
335 BASE_API bool TouchFile(const FilePath& path,
340 BASE_API bool SetLastModifiedTime(const FilePath& path,
349 BASE_API FILE* OpenFile(const FilePath& filename, const char* mode);
352 BASE_API bool CloseFile(FILE* file);
356 BASE_API bool TruncateFile(FILE* file);
360 BASE_API int ReadFile(const FilePath& filename, char* data, int size);
364 BASE_API int WriteFile(const FilePath& filename, const char* data, int size);
371 BASE_API bool GetCurrentDirectory(FilePath* path);
374 BASE_API bool SetCurrentDirectory(const FilePath& path);
408 class BASE_API FileEnumerator {
507 class BASE_API MemoryMappedFile {
562 BASE_API bool RenameFileAndResetSecurityDescriptor(
567 BASE_API bool HasFileBeenModifiedSince(
629 bool BASE_API PreReadImage(const wchar_t* file_path, size_t size_to_read,