mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-04 11:16:12 +03:00
34 lines
934 B
C++
34 lines
934 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/chromium/quic_chromium_connection_helper.h"
|
||
|
|
||
|
namespace net {
|
||
|
|
||
|
QuicChromiumConnectionHelper::QuicChromiumConnectionHelper(
|
||
|
const QuicClock* clock,
|
||
|
QuicRandom* random_generator)
|
||
|
: clock_(clock), random_generator_(random_generator) {}
|
||
|
|
||
|
QuicChromiumConnectionHelper::~QuicChromiumConnectionHelper() {}
|
||
|
|
||
|
const QuicClock* QuicChromiumConnectionHelper::GetClock() const {
|
||
|
return clock_;
|
||
|
}
|
||
|
|
||
|
QuicRandom* QuicChromiumConnectionHelper::GetRandomGenerator() {
|
||
|
return random_generator_;
|
||
|
}
|
||
|
|
||
|
QuicBufferAllocator*
|
||
|
QuicChromiumConnectionHelper::GetStreamFrameBufferAllocator() {
|
||
|
return &buffer_allocator_;
|
||
|
}
|
||
|
QuicBufferAllocator*
|
||
|
QuicChromiumConnectionHelper::GetStreamSendBufferAllocator() {
|
||
|
return &buffer_allocator_;
|
||
|
}
|
||
|
|
||
|
} // namespace net
|