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

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

Issue 1423463003: Rename QuicDataStream to QuicSpdyStream. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@105435080
Patch Set: Created 5 years, 1 month 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/tools/quic/quic_server_session.h ('k') | net/tools/quic/quic_server_session_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 (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/proto/cached_network_parameters.pb.h" 8 #include "net/quic/proto/cached_network_parameters.pb.h"
9 #include "net/quic/quic_connection.h" 9 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_flags.h" 10 #include "net/quic/quic_flags.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 if (id % 2 == 0) { 191 if (id % 2 == 0) {
192 DVLOG(1) << "Invalid incoming even stream_id:" << id; 192 DVLOG(1) << "Invalid incoming even stream_id:" << id;
193 connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID); 193 connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID);
194 return false; 194 return false;
195 } 195 }
196 return true; 196 return true;
197 } 197 }
198 198
199 QuicDataStream* QuicServerSession::CreateIncomingDynamicStream( 199 QuicSpdyStream* QuicServerSession::CreateIncomingDynamicStream(
200 QuicStreamId id) { 200 QuicStreamId id) {
201 if (!ShouldCreateIncomingDynamicStream(id)) { 201 if (!ShouldCreateIncomingDynamicStream(id)) {
202 return nullptr; 202 return nullptr;
203 } 203 }
204 204
205 return new QuicSpdyServerStream(id, this); 205 return new QuicSpdyServerStream(id, this);
206 } 206 }
207 207
208 QuicDataStream* QuicServerSession::CreateOutgoingDynamicStream() { 208 QuicSpdyStream* QuicServerSession::CreateOutgoingDynamicStream() {
209 DLOG(ERROR) << "Server push not yet supported"; 209 DLOG(ERROR) << "Server push not yet supported";
210 return nullptr; 210 return nullptr;
211 } 211 }
212 212
213 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 213 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
214 return crypto_stream_.get(); 214 return crypto_stream_.get();
215 } 215 }
216 216
217 } // namespace tools 217 } // namespace tools
218 } // namespace net 218 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_session.h ('k') | net/tools/quic/quic_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698