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

Unified Diff: net/tools/flip_server/spdy_interface.h

Issue 2031373002: Process HTTP/2 ALTSVC frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clear up my confusion with zero streams and empty origins. Created 4 years, 6 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/tools/flip_server/spdy_interface.h
diff --git a/net/tools/flip_server/spdy_interface.h b/net/tools/flip_server/spdy_interface.h
index 2d35652bfbf994332556842dcd2c2888845004cf..33f3abf873ddbb05c152d5c4cd46f97924e41d45 100644
--- a/net/tools/flip_server/spdy_interface.h
+++ b/net/tools/flip_server/spdy_interface.h
@@ -15,6 +15,7 @@
#include "base/compiler_specific.h"
#include "net/spdy/buffered_spdy_framer.h"
+#include "net/spdy/spdy_alt_svc_wire_format.h"
#include "net/spdy/spdy_protocol.h"
#include "net/tools/balsa/balsa_headers.h"
#include "net/tools/balsa/balsa_visitor_interface.h"
@@ -140,6 +141,12 @@ class SpdySM : public BufferedSpdyFramerVisitorInterface, public SMInterface {
SpdyStreamId promised_stream_id,
const SpdyHeaderBlock& headers) override {}
+ // Called when an ALTSVC frame has been parsed.
+ void OnAltSvc(SpdyStreamId stream_id,
+ base::StringPiece origin,
+ const SpdyAltSvcWireFormat::AlternativeServiceVector&
+ altsvc_vector) override {}
+
bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) override;
public:

Powered by Google App Engine
This is Rietveld 408576698