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

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

Issue 147763009: Add the client address to the Public Reset packet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove crypto_handshake_message.* from the CL; they were committed separately Created 6 years, 10 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_connection_logger.cc ('k') | net/quic/quic_data_stream.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/quic/quic_crypto_stream.h" 5 #include "net/quic/quic_crypto_stream.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "net/quic/crypto/crypto_handshake.h" 10 #include "net/quic/crypto/crypto_handshake.h"
11 #include "net/quic/quic_connection.h" 11 #include "net/quic/quic_connection.h"
12 #include "net/quic/quic_session.h" 12 #include "net/quic/quic_session.h"
13 #include "net/quic/quic_utils.h"
13 14
14 using std::string; 15 using std::string;
15 using base::StringPiece; 16 using base::StringPiece;
16 17
17 namespace net { 18 namespace net {
18 19
19 QuicCryptoStream::QuicCryptoStream(QuicSession* session) 20 QuicCryptoStream::QuicCryptoStream(QuicSession* session)
20 : ReliableQuicStream(kCryptoStreamId, session), 21 : ReliableQuicStream(kCryptoStreamId, session),
21 encryption_established_(false), 22 encryption_established_(false),
22 handshake_confirmed_(false) { 23 handshake_confirmed_(false) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 WriteOrBufferData(string(data.data(), data.length()), false); 63 WriteOrBufferData(string(data.data(), data.length()), false);
63 session()->connection()->Flush(); 64 session()->connection()->Flush();
64 } 65 }
65 66
66 const QuicCryptoNegotiatedParameters& 67 const QuicCryptoNegotiatedParameters&
67 QuicCryptoStream::crypto_negotiated_params() const { 68 QuicCryptoStream::crypto_negotiated_params() const {
68 return crypto_negotiated_params_; 69 return crypto_negotiated_params_;
69 } 70 }
70 71
71 } // namespace net 72 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection_logger.cc ('k') | net/quic/quic_data_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698