michael@0: // Copyright (c) 2011 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #include "base/platform_file.h" michael@0: michael@0: namespace base { michael@0: michael@0: PlatformFileInfo::PlatformFileInfo() michael@0: : size(0), michael@0: is_directory(false), michael@0: is_symbolic_link(false) { michael@0: } michael@0: michael@0: PlatformFileInfo::~PlatformFileInfo() {} michael@0: michael@0: #if !defined(OS_NACL) michael@0: PlatformFile CreatePlatformFile(const FilePath& name, michael@0: int flags, michael@0: bool* created, michael@0: PlatformFileError* error) { michael@0: if (name.ReferencesParent()) { michael@0: if (error) michael@0: *error = PLATFORM_FILE_ERROR_ACCESS_DENIED; michael@0: return kInvalidPlatformFileValue; michael@0: } michael@0: return CreatePlatformFileUnsafe(name, flags, created, error); michael@0: } michael@0: #endif michael@0: michael@0: } // namespace base