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() {}
18 PlatformFile CreatePlatformFile(const FilePath& name,
21 PlatformFileError* error) {
22 if (name.ReferencesParent()) {
24 *error = PLATFORM_FILE_ERROR_ACCESS_DENIED;
25 return kInvalidPlatformFileValue;
27 return CreatePlatformFileUnsafe(name, flags, created, error);