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

Unified Diff: net/spdy/spdy_framer.h

Issue 1130053007: Update HTTP/2 ALTSVC wireformat from draft-04 to draft-06. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hack around win_chromium_compile_dbg_ng linker errors. Created 5 years, 7 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/spdy/spdy_alt_svc_wire_format_test.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.h
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h
index f1f4908ea25e971ae53e078e6db9f2d88f6289fe..dae7c921db5f6d3ea49a5153d6975ddc6c2c362d 100644
--- a/net/spdy/spdy_framer.h
+++ b/net/spdy/spdy_framer.h
@@ -107,30 +107,12 @@ struct NET_EXPORT_PRIVATE SpdyAltSvcScratch {
~SpdyAltSvcScratch();
void Reset() {
- max_age = 0;
- port = 0;
- pid_len = 0;
- host_len = 0;
- origin_len = 0;
- pid_buf_len = 0;
- host_buf_len = 0;
- origin_buf_len = 0;
- protocol_id.reset();
- host.reset();
- origin.reset();
+ buffer.reset();
+ buffer_length = 0;
}
- uint32 max_age;
- uint16 port;
- uint8 pid_len;
- uint8 host_len;
- size_t origin_len;
- size_t pid_buf_len;
- size_t host_buf_len;
- size_t origin_buf_len;
- scoped_ptr<char[]> protocol_id;
- scoped_ptr<char[]> host;
- scoped_ptr<char[]> origin;
+ scoped_ptr<char[]> buffer;
+ size_t buffer_length = 0;
};
// SpdyFramerVisitorInterface is a set of callbacks for the SpdyFramer.
« no previous file with comments | « net/spdy/spdy_alt_svc_wire_format_test.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698