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

Unified Diff: net/quic/quic_framer.h

Issue 1037403004: Land Recent QUIC Changes until 03/27/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 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_connection_test.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer.h
diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h
index 34744d91b031ad881908a3321292474cdb5249a8..ad26163f1c85cab7b72d0569904837df0019682a 100644
--- a/net/quic/quic_framer.h
+++ b/net/quic/quic_framer.h
@@ -5,6 +5,7 @@
#ifndef NET_QUIC_QUIC_FRAMER_H_
#define NET_QUIC_QUIC_FRAMER_H_
+#include <string>
#include <vector>
#include "base/basictypes.h"
@@ -346,7 +347,6 @@ class NET_EXPORT_PRIVATE QuicFramer {
// Changes the encrypter used for level |level| to |encrypter|. The function
// takes ownership of |encrypter|.
void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter);
- const QuicEncrypter* encrypter(EncryptionLevel level) const;
// Returns a new encrypted packet, owned by the caller.
QuicEncryptedPacket* EncryptPacket(EncryptionLevel level,
@@ -460,6 +460,10 @@ class NET_EXPORT_PRIVATE QuicFramer {
// The Append* methods attempt to write the provided header or frame using the
// |writer|, and return true if successful.
+
+ // If header.public_header.version_flag is set, the version in the
+ // packet will be set -- but it will be set from quic_version_ not
+ // header.public_header.versions.
bool AppendPacketHeader(const QuicPacketHeader& header,
QuicDataWriter* writer);
bool AppendTypeByte(const QuicFrame& frame,
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698