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

Unified Diff: net/quic/crypto/crypto_framer.h

Issue 14718011: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/congestion_control/tcp_cubic_sender.cc ('k') | net/quic/crypto/crypto_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_framer.h
diff --git a/net/quic/crypto/crypto_framer.h b/net/quic/crypto/crypto_framer.h
index 07ffa3976ade05973d0c630c54bafb0f17f11a89..786128453f70bb002ee0bc2020602520f8c19e29 100644
--- a/net/quic/crypto/crypto_framer.h
+++ b/net/quic/crypto/crypto_framer.h
@@ -5,7 +5,8 @@
#ifndef NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_
#define NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_
-#include <map>
+#include <utility>
+#include <vector>
#include "base/basictypes.h"
#include "base/logging.h"
@@ -86,8 +87,7 @@ class NET_EXPORT_PRIVATE CryptoFramer {
enum CryptoFramerState {
STATE_READING_TAG,
STATE_READING_NUM_ENTRIES,
- STATE_READING_KEY_TAGS,
- STATE_READING_LENGTHS,
+ STATE_READING_TAGS_AND_LENGTHS,
STATE_READING_VALUES
};
@@ -103,11 +103,9 @@ class NET_EXPORT_PRIVATE CryptoFramer {
CryptoHandshakeMessage message_;
// Number of entires in the message currently being parsed.
uint16 num_entries_;
- // Vector of tags in the message currently being parsed.
- CryptoTagVector tags_;
- // Length of the data associated with each tag in the message currently
- // being parsed.
- std::map<CryptoTag, size_t> tag_length_map_;
+ // tags_and_lengths_ contains the tags that are currently being parsed and
+ // their lengths.
+ std::vector<std::pair<CryptoTag, size_t> > tags_and_lengths_;
// Cumulative length of all values in the message currently being parsed.
size_t values_len_;
};
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.cc ('k') | net/quic/crypto/crypto_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698