chromium/components/file_access/scoped_file_access.cc

// Copyright 2022 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/file_access/scoped_file_access.h"

namespace file_access {

#if BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
ScopedFileAccess::ScopedFileAccess(bool allowed, base::ScopedFD fd)
    :{}
#else
ScopedFileAccess::ScopedFileAccess(bool allowed) : allowed_(allowed) {}
#endif
ScopedFileAccess::ScopedFileAccess(ScopedFileAccess&& other) = default;
ScopedFileAccess& ScopedFileAccess::operator=(ScopedFileAccess&& other) =
    default;
ScopedFileAccess::~ScopedFileAccess() = default;

// static
ScopedFileAccess ScopedFileAccess::Allowed() {}

// static
ScopedFileAccess ScopedFileAccess::Denied() {}

}  // namespace file_access