mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
27 lines
817 B
C++
27 lines
817 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/tools/quic/quic_simple_server_session_helper.h"
|
||
|
|
||
|
namespace net {
|
||
|
|
||
|
QuicSimpleServerSessionHelper::QuicSimpleServerSessionHelper(QuicRandom* random)
|
||
|
: random_(random) {}
|
||
|
|
||
|
QuicSimpleServerSessionHelper::~QuicSimpleServerSessionHelper() = default;
|
||
|
|
||
|
QuicConnectionId QuicSimpleServerSessionHelper::GenerateConnectionIdForReject(
|
||
|
QuicConnectionId /*connection_id*/) const {
|
||
|
return random_->RandUint64();
|
||
|
}
|
||
|
|
||
|
bool QuicSimpleServerSessionHelper::CanAcceptClientHello(
|
||
|
const CryptoHandshakeMessage& message,
|
||
|
const QuicSocketAddress& self_address,
|
||
|
std::string* error_details) const {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
} // namespace net
|