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

Unified Diff: net/quic/quic_p2p_server_session.cc

Issue 474383003: Initial P2P implementation for WebRTC on QUIC prototype Base URL: https://chromium.googlesource.com/chromium/src.git@tests-squashed
Patch Set: Created 6 years, 4 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/quic/quic_p2p_server_session.h ('k') | net/quic/quic_p2p_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_p2p_server_session.cc
diff --git a/net/quic/quic_p2p_server_session.cc b/net/quic/quic_p2p_server_session.cc
new file mode 100644
index 0000000000000000000000000000000000000000..51c2f6ba2ec1341b57b25515fad12e0bb5becb21
--- /dev/null
+++ b/net/quic/quic_p2p_server_session.cc
@@ -0,0 +1,30 @@
+// Copyright 2014 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/quic_p2p_server_session.h"
+
+namespace net {
+
+QuicP2PServerSession::QuicP2PServerSession(
+ const QuicConfig& config,
+ QuicCryptoServerConfig* crypto_config,
+ QuicConnection* connection,
+ QuicP2PSession::Delegate* delegate,
+ QuicMessageStream::ReadDelegate* read_delegate)
+ : QuicP2PSession(config, connection, delegate, read_delegate),
+ crypto_stream_(new QuicCryptoServerStream(*crypto_config, this)) {}
+
+QuicP2PServerSession::~QuicP2PServerSession() {}
+
+bool QuicP2PServerSession::Connect() {
+ // Do nothing -- the client will initiate
+ DVLOG(1) << "QuicP2PServerSession::Connect()";
+ return true;
+}
+
+QuicCryptoStream* QuicP2PServerSession::GetCryptoStream() {
+ return crypto_stream_.get();
+}
+
+} // namespace net
« no previous file with comments | « net/quic/quic_p2p_server_session.h ('k') | net/quic/quic_p2p_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698