1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/platform_file.h"
9 PlatformFileInfo::PlatformFileInfo()
12 is_symbolic_link(false) {
15 PlatformFileInfo::~PlatformFileInfo() {}
17 PlatformFile
CreatePlatformFile(const FilePath
& name
,
20 PlatformFileError
* error
) {
21 if (name
.ReferencesParent()) {
23 *error
= PLATFORM_FILE_ERROR_ACCESS_DENIED
;
24 return kInvalidPlatformFileValue
;
26 return CreatePlatformFileUnsafe(name
, flags
, created
, error
);