QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // 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 | |
| 7 | namespace quic { |
| 8 | |
QUICHE team | 73957f1 | 2019-04-18 16:21:52 -0700 | [diff] [blame] | 9 | QuartcConnectionHelper::QuartcConnectionHelper(const QuicClock* clock, |
| 10 | QuicRandom* random) |
| 11 | : clock_(clock), random_(random) {} |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 12 | |
| 13 | const QuicClock* QuartcConnectionHelper::GetClock() const { |
| 14 | return clock_; |
| 15 | } |
| 16 | |
| 17 | QuicRandom* QuartcConnectionHelper::GetRandomGenerator() { |
QUICHE team | 73957f1 | 2019-04-18 16:21:52 -0700 | [diff] [blame] | 18 | return random_; |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | QuicBufferAllocator* QuartcConnectionHelper::GetStreamSendBufferAllocator() { |
| 22 | return &buffer_allocator_; |
| 23 | } |
| 24 | |
| 25 | } // namespace quic |