| Index: net/quic/crypto/crypto_handshake_message.cc
|
| diff --git a/net/quic/crypto/crypto_handshake_message.cc b/net/quic/crypto/crypto_handshake_message.cc
|
| index f2cd696462ada20a1a1e3a240c3ef274784e2455..c519bdf3f52667bb2e0ebf9d39f95d948038eedc 100644
|
| --- a/net/quic/crypto/crypto_handshake_message.cc
|
| +++ b/net/quic/crypto/crypto_handshake_message.cc
|
| @@ -18,9 +18,8 @@ using std::vector;
|
|
|
| namespace net {
|
|
|
| -CryptoHandshakeMessage::CryptoHandshakeMessage()
|
| - : tag_(0),
|
| - minimum_size_(0) {}
|
| +CryptoHandshakeMessage::CryptoHandshakeMessage() : tag_(0), minimum_size_(0) {
|
| +}
|
|
|
| CryptoHandshakeMessage::CryptoHandshakeMessage(
|
| const CryptoHandshakeMessage& other)
|
| @@ -31,7 +30,8 @@ CryptoHandshakeMessage::CryptoHandshakeMessage(
|
| // The new object can lazily reconstruct serialized_.
|
| }
|
|
|
| -CryptoHandshakeMessage::~CryptoHandshakeMessage() {}
|
| +CryptoHandshakeMessage::~CryptoHandshakeMessage() {
|
| +}
|
|
|
| CryptoHandshakeMessage& CryptoHandshakeMessage::operator=(
|
| const CryptoHandshakeMessage& other) {
|
| @@ -181,13 +181,13 @@ QuicErrorCode CryptoHandshakeMessage::GetUint64(QuicTag tag,
|
| }
|
|
|
| size_t CryptoHandshakeMessage::size() const {
|
| - size_t ret = sizeof(QuicTag) +
|
| - sizeof(uint16) /* number of entries */ +
|
| + size_t ret = sizeof(QuicTag) + sizeof(uint16) /* number of entries */ +
|
| sizeof(uint16) /* padding */;
|
| ret += (sizeof(QuicTag) + sizeof(uint32) /* end offset */) *
|
| tag_value_map_.size();
|
| for (QuicTagValueMap::const_iterator i = tag_value_map_.begin();
|
| - i != tag_value_map_.end(); ++i) {
|
| + i != tag_value_map_.end();
|
| + ++i) {
|
| ret += i->second.size();
|
| }
|
|
|
| @@ -210,8 +210,9 @@ string CryptoHandshakeMessage::DebugString() const {
|
| return DebugStringInternal(0);
|
| }
|
|
|
| -QuicErrorCode CryptoHandshakeMessage::GetPOD(
|
| - QuicTag tag, void* out, size_t len) const {
|
| +QuicErrorCode CryptoHandshakeMessage::GetPOD(QuicTag tag,
|
| + void* out,
|
| + size_t len) const {
|
| QuicTagValueMap::const_iterator it = tag_value_map_.find(tag);
|
| QuicErrorCode ret = QUIC_NO_ERROR;
|
|
|
| @@ -234,7 +235,8 @@ string CryptoHandshakeMessage::DebugStringInternal(size_t indent) const {
|
| string ret = string(2 * indent, ' ') + QuicUtils::TagToString(tag_) + "<\n";
|
| ++indent;
|
| for (QuicTagValueMap::const_iterator it = tag_value_map_.begin();
|
| - it != tag_value_map_.end(); ++it) {
|
| + it != tag_value_map_.end();
|
| + ++it) {
|
| ret += string(2 * indent, ' ') + QuicUtils::TagToString(it->first) + ": ";
|
|
|
| bool done = false;
|
|
|