naiveproxy/net/quic/quic_chromium_connection_helper.cc
2018-08-14 22:19:20 +00:00

30 lines
839 B
C++

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/quic/quic_chromium_connection_helper.h"
namespace net {
QuicChromiumConnectionHelper::QuicChromiumConnectionHelper(
const quic::QuicClock* clock,
quic::QuicRandom* random_generator)
: clock_(clock), random_generator_(random_generator) {}
QuicChromiumConnectionHelper::~QuicChromiumConnectionHelper() {}
const quic::QuicClock* QuicChromiumConnectionHelper::GetClock() const {
return clock_;
}
quic::QuicRandom* QuicChromiumConnectionHelper::GetRandomGenerator() {
return random_generator_;
}
quic::QuicBufferAllocator*
QuicChromiumConnectionHelper::GetStreamSendBufferAllocator() {
return &buffer_allocator_;
}
} // namespace net