summaryrefslogtreecommitdiffstats
path: root/base/platform_file.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 21:58:28 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 21:58:28 +0000
commitee8d4c8656fc8a8723e91e44d05fba4027c77b66 (patch)
tree7ed5dd75b40690657edd1e41b1aa78a980fd43d2 /base/platform_file.h
parent0189bc72c90fab03afab623d0b2d8be3d35af3e7 (diff)
downloadchromium_src-ee8d4c8656fc8a8723e91e44d05fba4027c77b66.zip
chromium_src-ee8d4c8656fc8a8723e91e44d05fba4027c77b66.tar.gz
chromium_src-ee8d4c8656fc8a8723e91e44d05fba4027c77b66.tar.bz2
Chromium side patch for DB support on Linux.
BUG=none TEST=none Review URL: http://codereview.chromium.org/174232 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file.h')
-rw-r--r--base/platform_file.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/base/platform_file.h b/base/platform_file.h
index a584d42..5d84262 100644
--- a/base/platform_file.h
+++ b/base/platform_file.h
@@ -34,16 +34,19 @@ enum PlatformFileFlags {
PLATFORM_FILE_ASYNC = 256,
PLATFORM_FILE_TEMPORARY = 512, // Used on Windows only
PLATFORM_FILE_HIDDEN = 1024, // Used on Windows only
- PLATFORM_FILE_DELETE_ON_CLOSE = 2048 // Used on Windows only
+ PLATFORM_FILE_DELETE_ON_CLOSE = 2048
};
-// Creates or open the given file. If PLATFORM_FILE_OPEN_ALWAYS is used, and
+// Creates or opens the given file. If PLATFORM_FILE_OPEN_ALWAYS is used, and
// |created| is provided, |created| will be set to true if the file was created
// or to false in case the file was just opened.
PlatformFile CreatePlatformFile(const std::wstring& name,
int flags,
bool* created);
+// Closes a file handle
+bool ClosePlatformFile(PlatformFile file);
+
} // namespace base
#endif // BASE_PLATFORM_FILE_H_