chromium/remoting/protocol/message_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 "remoting/protocol/message_reader.h"

#include <utility>

#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/task/single_thread_task_runner.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "remoting/base/compound_buffer.h"
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/p2p_stream_socket.h"

namespace remoting::protocol {

static const int kReadBufferSize =;

MessageReader::MessageReader() = default;
MessageReader::~MessageReader() {}

void MessageReader::StartReading(
    P2PStreamSocket* socket,
    const MessageReceivedCallback& message_received_callback,
    ReadFailedCallback read_failed_callback) {}

void MessageReader::DoRead() {}

void MessageReader::OnRead(int result) {}

bool MessageReader::HandleReadResult(int result) {}

void MessageReader::OnDataReceived(net::IOBuffer* data, int data_size) {}

void MessageReader::RunCallback(std::unique_ptr<CompoundBuffer> message) {}

}  // namespace remoting::protocol