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

Unified Diff: net/quic/quic_crypto_stream.cc

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_crypto_stream.h ('k') | net/quic/quic_crypto_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_crypto_stream.cc
diff --git a/net/quic/quic_crypto_stream.cc b/net/quic/quic_crypto_stream.cc
index 712c8fd8021a9bfdf7cb8440d0b40917a84d7a74..d34e6eca97bc1fbb0a050bb3aaa48e8c36691e62 100644
--- a/net/quic/quic_crypto_stream.cc
+++ b/net/quic/quic_crypto_stream.cc
@@ -3,8 +3,15 @@
// found in the LICENSE file.
#include "net/quic/quic_crypto_stream.h"
+
+#include <string>
+
+#include "base/string_piece.h"
+#include "net/quic/crypto/crypto_handshake.h"
+#include "net/quic/quic_connection.h"
#include "net/quic/quic_session.h"
+using std::string;
using base::StringPiece;
namespace net {
@@ -49,9 +56,9 @@ void QuicCryptoStream::SetHandshakeComplete(QuicErrorCode error) {
void QuicCryptoStream::SendHandshakeMessage(
const CryptoHandshakeMessage& message) {
- scoped_ptr<QuicData> data(crypto_framer_.ConstructHandshakeMessage(message));
+ const QuicData& data = message.GetSerialized();
// TODO(wtc): check the return value.
- WriteData(string(data->data(), data->length()), false);
+ WriteData(string(data.data(), data.length()), false);
}
QuicNegotiatedParameters::QuicNegotiatedParameters()
« no previous file with comments | « net/quic/quic_crypto_stream.h ('k') | net/quic/quic_crypto_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698