summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/http2/adapter/recording_http2_visitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/third_party/quiche/src/http2/adapter/recording_http2_visitor.h')
-rw-r--r--chromium/net/third_party/quiche/src/http2/adapter/recording_http2_visitor.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/chromium/net/third_party/quiche/src/http2/adapter/recording_http2_visitor.h b/chromium/net/third_party/quiche/src/http2/adapter/recording_http2_visitor.h
index 452b45185cb..25b92935b35 100644
--- a/chromium/net/third_party/quiche/src/http2/adapter/recording_http2_visitor.h
+++ b/chromium/net/third_party/quiche/src/http2/adapter/recording_http2_visitor.h
@@ -5,6 +5,7 @@
#include <string>
#include "http2/adapter/http2_visitor_interface.h"
+#include "common/platform/api/quiche_export.h"
#include "common/platform/api/quiche_test.h"
namespace http2 {
@@ -12,12 +13,13 @@ namespace adapter {
namespace test {
// A visitor implementation that records the sequence of callbacks it receives.
-class RecordingHttp2Visitor : public Http2VisitorInterface {
+class QUICHE_NO_EXPORT RecordingHttp2Visitor : public Http2VisitorInterface {
public:
using Event = std::string;
using EventSequence = std::list<Event>;
// From Http2VisitorInterface
+ ssize_t OnReadyToSend(absl::string_view serialized) override;
void OnConnectionError() override;
void OnFrameHeader(Http2StreamId stream_id,
size_t length,
@@ -27,10 +29,10 @@ class RecordingHttp2Visitor : public Http2VisitorInterface {
void OnSetting(Http2Setting setting) override;
void OnSettingsEnd() override;
void OnSettingsAck() override;
- void OnBeginHeadersForStream(Http2StreamId stream_id) override;
- void OnHeaderForStream(Http2StreamId stream_id,
- absl::string_view name,
- absl::string_view value) override;
+ bool OnBeginHeadersForStream(Http2StreamId stream_id) override;
+ OnHeaderResult OnHeaderForStream(Http2StreamId stream_id,
+ absl::string_view name,
+ absl::string_view value) override;
void OnEndHeadersForStream(Http2StreamId stream_id) override;
void OnBeginDataForStream(Http2StreamId stream_id,
size_t payload_length) override;
@@ -51,6 +53,11 @@ class RecordingHttp2Visitor : public Http2VisitorInterface {
Http2ErrorCode error_code,
absl::string_view opaque_data) override;
void OnWindowUpdate(Http2StreamId stream_id, int window_increment) override;
+ int OnBeforeFrameSent(uint8_t frame_type, Http2StreamId stream_id,
+ size_t length, uint8_t flags) override;
+ int OnFrameSent(uint8_t frame_type, Http2StreamId stream_id, size_t length,
+ uint8_t flags, uint32_t error_code) override;
+ bool OnInvalidFrame(Http2StreamId stream_id, int error_code) override;
void OnReadyToSendDataForStream(Http2StreamId stream_id,
char* destination_buffer,
size_t length,
@@ -64,7 +71,8 @@ class RecordingHttp2Visitor : public Http2VisitorInterface {
size_t payload_length) override;
void OnMetadataForStream(Http2StreamId stream_id,
absl::string_view metadata) override;
- void OnMetadataEndForStream(Http2StreamId stream_id) override;
+ bool OnMetadataEndForStream(Http2StreamId stream_id) override;
+ void OnErrorDebug(absl::string_view message) override;
const EventSequence& GetEventSequence() const { return events_; }
void Clear() { events_.clear(); }