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

Side by Side Diff: net/tools/quic/quic_server_session.cc

Issue 13976007: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated copyright notice Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_server_session.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/tools/quic/quic_server_session.h" 5 #include "net/tools/quic/quic_server_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/reliable_quic_stream.h" 8 #include "net/quic/reliable_quic_stream.h"
9 #include "net/tools/quic/quic_spdy_server_stream.h" 9 #include "net/tools/quic/quic_spdy_server_stream.h"
10 10
11 namespace net { 11 namespace net {
12 namespace tools { 12 namespace tools {
13 13
14 QuicServerSession::QuicServerSession(QuicConnection* connection, 14 QuicServerSession::QuicServerSession(
15 QuicSessionOwner* owner) 15 const QuicConfig& config,
16 const QuicCryptoServerConfig& crypto_config,
17 QuicConnection* connection,
18 QuicSessionOwner* owner)
16 : QuicSession(connection, true), 19 : QuicSession(connection, true),
17 crypto_stream_(this), 20 crypto_stream_(config, crypto_config, this),
18 owner_(owner) { 21 owner_(owner) {
19 } 22 }
20 23
21 QuicServerSession::~QuicServerSession() { 24 QuicServerSession::~QuicServerSession() {
22 } 25 }
23 26
24 void QuicServerSession::ConnectionClose(QuicErrorCode error, bool from_peer) { 27 void QuicServerSession::ConnectionClose(QuicErrorCode error, bool from_peer) {
25 QuicSession::ConnectionClose(error, from_peer); 28 QuicSession::ConnectionClose(error, from_peer);
26 owner_->OnConnectionClose(connection()->guid(), error); 29 owner_->OnConnectionClose(connection()->guid(), error);
27 } 30 }
(...skipping 26 matching lines...) Expand all
54 DLOG(ERROR) << "Server push not yet supported"; 57 DLOG(ERROR) << "Server push not yet supported";
55 return NULL; 58 return NULL;
56 } 59 }
57 60
58 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 61 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
59 return &crypto_stream_; 62 return &crypto_stream_;
60 } 63 }
61 64
62 } // namespace tools 65 } // namespace tools
63 } // namespace net 66 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698