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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/quic/quic_p2p_server_session.h"
6
7 namespace net {
8
9 QuicP2PServerSession::QuicP2PServerSession(
10 const QuicConfig& config,
11 QuicCryptoServerConfig* crypto_config,
12 QuicConnection* connection,
13 QuicP2PSession::Delegate* delegate,
14 QuicMessageStream::ReadDelegate* read_delegate)
15 : QuicP2PSession(config, connection, delegate, read_delegate),
16 crypto_stream_(new QuicCryptoServerStream(*crypto_config, this)) {}
17
18 QuicP2PServerSession::~QuicP2PServerSession() {}
19
20 bool QuicP2PServerSession::Connect() {
21 // Do nothing -- the client will initiate
22 DVLOG(1) << "QuicP2PServerSession::Connect()";
23 return true;
24 }
25
26 QuicCryptoStream* QuicP2PServerSession::GetCryptoStream() {
27 return crypto_stream_.get();
28 }
29
30 } // namespace net
OLDNEW
« 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