summaryrefslogtreecommitdiffstats
path: root/base/platform_file.h
diff options
context:
space:
mode:
authorericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-13 21:56:32 +0000
committerericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-13 21:56:32 +0000
commitd4905e2e68cb434f9b3cbea9726eeaf23b1ecb00 (patch)
tree0252099f7e9b2eaa1f0df3166da7933d761b4b55 /base/platform_file.h
parent067a16671a1faf2f460f5ebbddfbfb5d933c5cec (diff)
downloadchromium_src-d4905e2e68cb434f9b3cbea9726eeaf23b1ecb00.zip
chromium_src-d4905e2e68cb434f9b3cbea9726eeaf23b1ecb00.tar.gz
chromium_src-d4905e2e68cb434f9b3cbea9726eeaf23b1ecb00.tar.bz2
ObfuscatedFileSystemFileUtil class
This is functional and reasonably well-tested, but we'll still have to adapt the system a bit in order to use it. BUG=none TEST=included unit tests Review URL: http://codereview.chromium.org/6955013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file.h')
-rw-r--r--base/platform_file.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/platform_file.h b/base/platform_file.h
index 461b060..dbac61a 100644
--- a/base/platform_file.h
+++ b/base/platform_file.h
@@ -96,9 +96,10 @@ struct BASE_API PlatformFileInfo {
base::Time creation_time;
};
-// 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. |error_code| can be NULL.
+// Creates or opens the given file. If |created| is provided, it will be set to
+// 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,