diff options
author | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 18:56:45 +0000 |
---|---|---|
committer | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 18:56:45 +0000 |
commit | 55c27fe14f688d44fa3f85568847e5b839e7eae3 (patch) | |
tree | 6fcf29ec974c607fed2d0c54b0584ab356b1d73a /base/platform_file.h | |
parent | 099f9c7d29ad787ed2e5990eb9981b72cdb04463 (diff) | |
download | chromium_src-55c27fe14f688d44fa3f85568847e5b839e7eae3.zip chromium_src-55c27fe14f688d44fa3f85568847e5b839e7eae3.tar.gz chromium_src-55c27fe14f688d44fa3f85568847e5b839e7eae3.tar.bz2 |
Remove CreatePlatformFile
BUG=322664
Review URL: https://codereview.chromium.org/227603007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263953 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file.h')
-rw-r--r-- | base/platform_file.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/base/platform_file.h b/base/platform_file.h index 15bb59e..a2693a7 100644 --- a/base/platform_file.h +++ b/base/platform_file.h @@ -134,25 +134,6 @@ const PlatformFile kInvalidPlatformFileValue = -1; BASE_EXPORT PlatformFileError ErrnoToPlatformFileError(int saved_errno); #endif -// 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| can be NULL. -// -// This function fails with 'access denied' if the |name| contains path -// traversal ('..') components. -BASE_EXPORT PlatformFile CreatePlatformFile(const FilePath& name, - int flags, - bool* created, - PlatformFileError* error); - -// Same as CreatePlatformFile but allows paths with traversal (like \..\) -// components. Use only with extreme care. -BASE_EXPORT PlatformFile CreatePlatformFileUnsafe(const FilePath& name, - int flags, - bool* created, - PlatformFileError* error); - BASE_EXPORT FILE* FdopenPlatformFile(PlatformFile file, const char* mode); // Closes a file handle. Returns |true| on success and |false| otherwise. |