chromium/net/base/upload_file_element_reader.cc

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

#include "net/base/upload_file_element_reader.h"

#include <memory>

#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/task_runner.h"
#include "net/base/file_stream.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"

namespace net {

namespace {

// In tests, this value is used to override the return value of
// UploadFileElementReader::GetContentLength() when set to non-zero.
uint64_t overriding_content_length =;

}  // namespace

UploadFileElementReader::UploadFileElementReader(
    base::TaskRunner* task_runner,
    base::File file,
    const base::FilePath& path,
    uint64_t range_offset,
    uint64_t range_length,
    const base::Time& expected_modification_time)
    :{}

UploadFileElementReader::UploadFileElementReader(
    base::TaskRunner* task_runner,
    const base::FilePath& path,
    uint64_t range_offset,
    uint64_t range_length,
    const base::Time& expected_modification_time)
    :{}

UploadFileElementReader::~UploadFileElementReader() = default;

const UploadFileElementReader* UploadFileElementReader::AsFileReader() const {}

int UploadFileElementReader::Init(CompletionOnceCallback callback) {}

uint64_t UploadFileElementReader::GetContentLength() const {}

uint64_t UploadFileElementReader::BytesRemaining() const {}

int UploadFileElementReader::Read(IOBuffer* buf,
                                  int buf_length,
                                  CompletionOnceCallback callback) {}

int UploadFileElementReader::DoLoop(int result) {}

int UploadFileElementReader::DoOpen() {}

int UploadFileElementReader::DoOpenComplete(int result) {}

int UploadFileElementReader::DoSeek() {}

int UploadFileElementReader::DoGetFileInfo(int result) {}

int UploadFileElementReader::DoGetFileInfoComplete(int result) {}

int UploadFileElementReader::DoReadComplete(int result) {}

void UploadFileElementReader::OnIOComplete(int result) {}

UploadFileElementReader::ScopedOverridingContentLengthForTests::
    ScopedOverridingContentLengthForTests(uint64_t value) {}

UploadFileElementReader::ScopedOverridingContentLengthForTests::
~ScopedOverridingContentLengthForTests() {}

}  // namespace net