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

Unified Diff: net/spdy/spdy_alt_svc_wire_format.h

Issue 1410343005: Update version parameter format in SpdyAltSvcWireFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | net/spdy/spdy_alt_svc_wire_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_alt_svc_wire_format.h
diff --git a/net/spdy/spdy_alt_svc_wire_format.h b/net/spdy/spdy_alt_svc_wire_format.h
index dfd72fd98c76299a2c1e8626b970507f3b44b231..317ae9736602768735d2dd52d4ddf0133be89b2b 100644
--- a/net/spdy/spdy_alt_svc_wire_format.h
+++ b/net/spdy/spdy_alt_svc_wire_format.h
@@ -26,25 +26,29 @@ class SpdyAltSvcWireFormatPeer;
class NET_EXPORT_PRIVATE SpdyAltSvcWireFormat {
public:
+ using VersionVector = std::vector<uint16>;
+
struct NET_EXPORT_PRIVATE AlternativeService {
std::string protocol_id;
std::string host;
+
// Default is 0: invalid port.
uint16 port = 0;
- // Default is 0: unspecified version.
- uint16 version = 0;
// Default is one day.
uint32 max_age = 86400;
// Default is always use.
double probability = 1.0;
+ // Default is empty: unspecified version.
+ VersionVector version;
AlternativeService();
AlternativeService(const std::string& protocol_id,
const std::string& host,
uint16 port,
- uint16 version,
uint32 max_age,
- double probability);
+ double probability,
+ VersionVector version);
+ ~AlternativeService();
bool operator==(const AlternativeService& other) const {
return protocol_id == other.protocol_id && host == other.host &&
« no previous file with comments | « no previous file | net/spdy/spdy_alt_svc_wire_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698