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

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

Issue 468373002: Patch set 2 of Daniel Ziegler's CL Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Suggested changes. 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_server_session.h ('k') | net/quic/quic_server_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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/quic/quic_server_session.h" 5 #include "net/quic/quic_server_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/quic_connection.h" 8 #include "net/quic/quic_connection.h"
9 #include "net/quic/quic_flags.h" 9 #include "net/quic/quic_flags.h"
10 #include "net/quic/quic_spdy_server_stream.h" 10 #include "net/quic/quic_spdy_server_stream.h"
11 #include "net/quic/reliable_quic_stream.h" 11 #include "net/quic/reliable_quic_stream.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 QuicServerSession::QuicServerSession( 15 QuicServerSession::QuicServerSession(
16 const QuicConfig& config, 16 const QuicConfig& config,
17 QuicConnection* connection, 17 QuicConnection* connection,
18 QuicPerConnectionPacketWriter* connection_packet_writer,
19 QuicServerSessionVisitor* visitor) 18 QuicServerSessionVisitor* visitor)
20 : QuicSession(connection, config), 19 : QuicSession(connection, config),
21 connection_packet_writer_(connection_packet_writer),
22 visitor_(visitor) {} 20 visitor_(visitor) {}
23 21
24 QuicServerSession::~QuicServerSession() {} 22 QuicServerSession::~QuicServerSession() {}
25 23
26 void QuicServerSession::InitializeSession( 24 void QuicServerSession::InitializeSession(
27 const QuicCryptoServerConfig& crypto_config) { 25 const QuicCryptoServerConfig& crypto_config) {
28 QuicSession::InitializeSession(); 26 QuicSession::InitializeSession();
29 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); 27 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config));
30 } 28 }
31 29
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { 87 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() {
90 DLOG(ERROR) << "Server push not yet supported"; 88 DLOG(ERROR) << "Server push not yet supported";
91 return NULL; 89 return NULL;
92 } 90 }
93 91
94 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 92 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
95 return crypto_stream_.get(); 93 return crypto_stream_.get();
96 } 94 }
97 95
98 } // namespace net 96 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_server_session.h ('k') | net/quic/quic_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698