#include "quiche/quic/core/quic_flow_controller.h"
#include <algorithm>
#include <cstdint>
#include <string>
#include "absl/strings/str_cat.h"
#include "quiche/quic/core/quic_connection.h"
#include "quiche/quic/core/quic_packets.h"
#include "quiche/quic/core/quic_session.h"
#include "quiche/quic/core/quic_utils.h"
#include "quiche/quic/platform/api/quic_bug_tracker.h"
#include "quiche/quic/platform/api/quic_flag_utils.h"
#include "quiche/quic/platform/api/quic_flags.h"
#include "quiche/quic/platform/api/quic_logging.h"
namespace quic {
#define ENDPOINT …
std::string QuicFlowController::LogLabel() { … }
QuicFlowController::QuicFlowController(
QuicSession* session, QuicStreamId id, bool is_connection_flow_controller,
QuicStreamOffset send_window_offset, QuicStreamOffset receive_window_offset,
QuicByteCount receive_window_size_limit,
bool should_auto_tune_receive_window,
QuicFlowControllerInterface* session_flow_controller)
: … { … }
void QuicFlowController::AddBytesConsumed(QuicByteCount bytes_consumed) { … }
bool QuicFlowController::UpdateHighestReceivedOffset(
QuicStreamOffset new_offset) { … }
void QuicFlowController::AddBytesSent(QuicByteCount bytes_sent) { … }
bool QuicFlowController::FlowControlViolation() { … }
void QuicFlowController::MaybeIncreaseMaxWindowSize() { … }
void QuicFlowController::IncreaseWindowSize() { … }
QuicByteCount QuicFlowController::WindowUpdateThreshold() { … }
void QuicFlowController::MaybeSendWindowUpdate() { … }
void QuicFlowController::UpdateReceiveWindowOffsetAndSendWindowUpdate(
QuicStreamOffset available_window) { … }
void QuicFlowController::MaybeSendBlocked() { … }
bool QuicFlowController::UpdateSendWindowOffset(
QuicStreamOffset new_send_window_offset) { … }
void QuicFlowController::EnsureWindowAtLeast(QuicByteCount window_size) { … }
bool QuicFlowController::IsBlocked() const { … }
uint64_t QuicFlowController::SendWindowSize() const { … }
void QuicFlowController::UpdateReceiveWindowSize(QuicStreamOffset size) { … }
void QuicFlowController::SendWindowUpdate() { … }
}