diff options
Diffstat (limited to 'chromium/net/third_party/quiche/src/http2/adapter/http2_visitor_interface.h')
-rw-r--r-- | chromium/net/third_party/quiche/src/http2/adapter/http2_visitor_interface.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/chromium/net/third_party/quiche/src/http2/adapter/http2_visitor_interface.h b/chromium/net/third_party/quiche/src/http2/adapter/http2_visitor_interface.h index 765e9f43896..12729e75651 100644 --- a/chromium/net/third_party/quiche/src/http2/adapter/http2_visitor_interface.h +++ b/chromium/net/third_party/quiche/src/http2/adapter/http2_visitor_interface.h @@ -34,7 +34,7 @@ namespace adapter { // - OnHeaderForStream() // - OnEndHeadersForStream() // - OnRstStream() -// - OnAbortStream() +// - OnCloseStream() // // Request closed mid-stream, e.g., with error code NO_ERROR: // - OnBeginHeadersForStream() @@ -43,8 +43,7 @@ namespace adapter { // - OnRstStream() // - OnCloseStream() // -// More details are at RFC 7540 (go/http2spec), and more examples are at -// http://google3/net/http2/server/lib/internal/h2/nghttp2/nghttp2_server_adapter_test.cc. +// More details are at RFC 7540 (go/http2spec). class Http2VisitorInterface { public: Http2VisitorInterface(const Http2VisitorInterface&) = delete; @@ -54,6 +53,12 @@ class Http2VisitorInterface { // Called when a connection-level processing error has been encountered. virtual void OnConnectionError() = 0; + // Called when the header for a frame is received. + virtual void OnFrameHeader(Http2StreamId stream_id, + size_t length, + uint8_t type, + uint8_t flags) {} + // Called when a non-ack SETTINGS frame is received. virtual void OnSettingsStart() = 0; @@ -97,18 +102,12 @@ class Http2VisitorInterface { virtual void OnEndStream(Http2StreamId stream_id) = 0; // Called when the connection receives a RST_STREAM for a stream. This call - // will be followed by either OnCloseStream() or OnAbortStream(). + // will be followed by either OnCloseStream(). virtual void OnRstStream(Http2StreamId stream_id, Http2ErrorCode error_code) = 0; - // Called when a stream is closed with error code NO_ERROR. Compare with - // OnAbortStream(). - virtual void OnCloseStream(Http2StreamId stream_id) = 0; - - // Called when a stream is aborted, i.e., closed for the reason indicated by - // the given |error_code|, where error_code != NO_ERROR. Compare with - // OnCloseStream(). - virtual void OnAbortStream(Http2StreamId stream_id, + // Called when a stream is closed. + virtual void OnCloseStream(Http2StreamId stream_id, Http2ErrorCode error_code) = 0; // Called when the connection receives a PRIORITY frame. |