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

Unified Diff: net/tools/quic/quic_simple_dispatcher.h

Issue 2692813002: Server push cancellation: add a finch trial parameter (Closed)
Patch Set: sync with internal code Created 3 years, 10 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/quic/quic_simple_dispatcher.h
diff --git a/net/tools/quic/quic_simple_dispatcher.h b/net/tools/quic/quic_simple_dispatcher.h
index b9df6d9c63cb92b82c793313f04109527b488cbb..41d24cfb33bbd5310efc07a664a026cf31aec4ac 100644
--- a/net/tools/quic/quic_simple_dispatcher.h
+++ b/net/tools/quic/quic_simple_dispatcher.h
@@ -24,6 +24,10 @@ class QuicSimpleDispatcher : public QuicDispatcher {
~QuicSimpleDispatcher() override;
+ int GetRstErrorCount(QuicRstStreamErrorCode rst_error_code) const;
+
+ void OnRstStreamReceived(const QuicRstStreamFrame& frame) override;
+
protected:
QuicServerSessionBase* CreateQuicSession(
QuicConnectionId connection_id,
@@ -33,6 +37,9 @@ class QuicSimpleDispatcher : public QuicDispatcher {
private:
QuicHttpResponseCache* response_cache_; // Unowned.
+
+ // The map of the reset error code with its counter.
+ std::map<QuicRstStreamErrorCode, int> rst_error_map_;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698