chromium/components/services/filesystem/util.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/services/filesystem/util.h"

#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <time.h>

#include <limits>
#include <string>

#include "base/strings/string_util.h"
#include "build/build_config.h"

#if BUILDFLAG(IS_WIN)
#include "base/strings/utf_string_conversions.h"
#endif

// module filesystem has various constants which must line up with enum values
// in base::File::Flags.
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

// filesystem.Whence in types.mojom must be the same as base::File::Whence.
static_assert;
static_assert;
static_assert;

namespace filesystem {

base::File::Error IsWhenceValid(mojom::Whence whence) {}

base::File::Error IsOffsetValid(int64_t offset) {}

base::File::Error GetError(const base::File& file) {}

mojom::FileInformationPtr MakeFileInformation(const base::File::Info& info) {}

base::File::Error ValidatePath(const std::string& raw_path,
                               const base::FilePath& filesystem_base,
                               base::FilePath* out) {}

}  // namespace filesystem