blob: da74858d69b1677670e52678f73d9d6eaf76b799 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// Copyright (c) 2017 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/third_party/quiche/src/quic/quartc/quartc_connection_helper.h"
6
7namespace quic {
8
QUICHE team73957f12019-04-18 16:21:52 -07009QuartcConnectionHelper::QuartcConnectionHelper(const QuicClock* clock,
10 QuicRandom* random)
11 : clock_(clock), random_(random) {}
QUICHE teama6ef0a62019-03-07 20:34:33 -050012
13const QuicClock* QuartcConnectionHelper::GetClock() const {
14 return clock_;
15}
16
17QuicRandom* QuartcConnectionHelper::GetRandomGenerator() {
QUICHE team73957f12019-04-18 16:21:52 -070018 return random_;
QUICHE teama6ef0a62019-03-07 20:34:33 -050019}
20
21QuicBufferAllocator* QuartcConnectionHelper::GetStreamSendBufferAllocator() {
22 return &buffer_allocator_;
23}
24
25} // namespace quic