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

Unified Diff: net/quic/quic_p2p_client_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_client_session.h ('k') | net/quic/quic_p2p_endpoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_p2p_client_session.cc
diff --git a/net/quic/quic_p2p_client_session.cc b/net/quic/quic_p2p_client_session.cc
new file mode 100644
index 0000000000000000000000000000000000000000..487d19d03021d1b0a90ecb02cacd7b8cc669a0f4
--- /dev/null
+++ b/net/quic/quic_p2p_client_session.cc
@@ -0,0 +1,33 @@
+// 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_client_session.h"
+
+namespace net {
+
+QuicP2PClientSession::QuicP2PClientSession(
+ const QuicConfig& config,
+ const QuicServerId& server_id,
+ QuicCryptoClientConfig* crypto_config,
+ QuicConnection* connection,
+ QuicP2PSession::Delegate* delegate,
+ QuicMessageStream::ReadDelegate* read_delegate)
+ : QuicP2PSession(config, connection, delegate, read_delegate),
+ crypto_stream_(new QuicCryptoClientStream(server_id,
+ this,
+ NULL,
+ crypto_config)) {}
+
+QuicP2PClientSession::~QuicP2PClientSession() {}
+
+bool QuicP2PClientSession::Connect() {
+ DVLOG(1) << "QuicP2PClientSession::Connect()";
+ return crypto_stream_->CryptoConnect();
+}
+
+QuicCryptoStream* QuicP2PClientSession::GetCryptoStream() {
+ return crypto_stream_.get();
+}
+
+} // namespace net
« no previous file with comments | « net/quic/quic_p2p_client_session.h ('k') | net/quic/quic_p2p_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698