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

Unified Diff: net/quic/crypto/source_address_token.cc

Issue 404343003: Add bandwidth_estimate and server_namespace fields to the source-address (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
Index: net/quic/crypto/source_address_token.cc
diff --git a/net/quic/crypto/source_address_token.cc b/net/quic/crypto/source_address_token.cc
index b095e762265f758aa2d2c9be40d5488fd8a255b5..f20c343f987e297e301cdd796529f72cb03368b8 100644
--- a/net/quic/crypto/source_address_token.cc
+++ b/net/quic/crypto/source_address_token.cc
@@ -14,6 +14,12 @@ using std::vector;
namespace net {
+CachedNetworkParameters::CachedNetworkParameters() {
+}
+
+CachedNetworkParameters::~CachedNetworkParameters() {
+}
+
SourceAddressToken::SourceAddressToken() {
}
@@ -27,6 +33,8 @@ string SourceAddressToken::SerializeAsString() const {
string time_str = base::Int64ToString(timestamp_);
out.push_back(time_str.size());
out.append(time_str);
+ // TODO(rtenneti): Implement serialization of optional CachedNetworkParameters
+ // when they are used.
return out;
}
@@ -52,6 +60,9 @@ bool SourceAddressToken::ParseFromArray(const char* plaintext,
ip_.assign(&plaintext[1], ip_len);
timestamp_ = timestamp;
+
+ // TODO(rtenneti): Implement parsing of optional CachedNetworkParameters when
+ // they are used.
return true;
}
« net/quic/crypto/source_address_token.h ('K') | « net/quic/crypto/source_address_token.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698