chromium/third_party/crashpad/crashpad/util/file/file_io.cc

// Copyright 2014 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "util/file/file_io.h"

#include "base/check_op.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"

namespace crashpad {

namespace {

class FileIOReadExactly final : public internal::ReadExactlyInternal {};

class FileIOWriteAll final : public internal::WriteAllInternal {};

}  // namespace

namespace internal {

bool ReadExactlyInternal::ReadExactly(void* buffer, size_t size, bool can_log) {}

bool WriteAllInternal::WriteAll(const void* buffer, size_t size) {}

}  // namespace internal

bool ReadFileExactly(FileHandle file, void* buffer, size_t size) {}

bool LoggingReadFileExactly(FileHandle file, void* buffer, size_t size) {}

bool WriteFile(FileHandle file, const void* buffer, size_t size) {}

bool LoggingWriteFile(FileHandle file, const void* buffer, size_t size) {}

void CheckedReadFileExactly(FileHandle file, void* buffer, size_t size) {}

void CheckedWriteFile(FileHandle file, const void* buffer, size_t size) {}

void CheckedReadFileAtEOF(FileHandle file) {}

bool LoggingReadToEOF(FileHandle file, std::string* contents) {}

bool LoggingReadEntireFile(const base::FilePath& path, std::string* contents) {}

void CheckedCloseFile(FileHandle file) {}

}  // namespace crashpad