Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: net/tools/quic/quic_simple_crypto_server_stream_helper.cc

Issue 2322233004: Landing Recent QUIC changes until Sun Sep 4 03:41:00 (Closed)
Patch Set: Remove simulation files from the build. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_simple_crypto_server_stream_helper.h ('k') | net/tools/quic/quic_simple_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_crypto_server_stream_helper.cc
diff --git a/net/tools/quic/quic_simple_crypto_server_stream_helper.cc b/net/tools/quic/quic_simple_crypto_server_stream_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9f2870ac9a70c7fa014885b9cd49efb82e77d26c
--- /dev/null
+++ b/net/tools/quic/quic_simple_crypto_server_stream_helper.cc
@@ -0,0 +1,28 @@
+// 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_crypto_server_stream_helper.h"
+
+namespace net {
+
+QuicSimpleCryptoServerStreamHelper::QuicSimpleCryptoServerStreamHelper(
+ QuicRandom* random)
+ : random_(random) {}
+
+QuicSimpleCryptoServerStreamHelper::~QuicSimpleCryptoServerStreamHelper() {}
+
+QuicConnectionId
+ QuicSimpleCryptoServerStreamHelper::GenerateConnectionIdForReject(
+ QuicConnectionId /*connection_id*/) const {
+ return random_->RandUint64();
+}
+
+bool QuicSimpleCryptoServerStreamHelper::CanAcceptClientHello(
+ const CryptoHandshakeMessage& message,
+ const IPEndPoint& self_address,
+ std::string* error_details) const {
+ return true;
+}
+
+} // namespace net
« no previous file with comments | « net/tools/quic/quic_simple_crypto_server_stream_helper.h ('k') | net/tools/quic/quic_simple_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698