#include "content/browser/devtools/devtools_stream_file.h"
#include "base/base64.h"
#include "base/compiler_specific.h"
#include "base/containers/span.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/strings/string_util.h"
#include "base/task/lazy_thread_pool_task_runner.h"
#include "base/task/sequenced_task_runner.h"
#include "base/third_party/icu/icu_utf.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "storage/browser/file_system/file_system_context.h"
namespace content {
scoped_refptr<base::SequencedTaskRunner> impl_task_runner() { … }
scoped_refptr<DevToolsStreamFile> DevToolsStreamFile::Create(
DevToolsIOContext* context,
bool binary) { … }
DevToolsStreamFile::DevToolsStreamFile(DevToolsIOContext* context, bool binary)
: … { … }
DevToolsStreamFile::~DevToolsStreamFile() { … }
bool DevToolsStreamFile::InitOnFileSequenceIfNeeded() { … }
void DevToolsStreamFile::Read(off_t position,
size_t max_size,
ReadCallback callback) { … }
void DevToolsStreamFile::Append(std::unique_ptr<std::string> data) { … }
void DevToolsStreamFile::ReadOnFileSequence(off_t position,
size_t max_size,
ReadCallback callback) { … }
DevToolsIOContext::Stream::Status DevToolsStreamFile::InnerReadOnFileSequence(
off_t position,
size_t max_size,
std::string& buffer) { … }
void DevToolsStreamFile::AppendOnFileSequence(
std::unique_ptr<std::string> data) { … }
}