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

Unified Diff: net/spdy/buffered_spdy_framer.h

Issue 2675593002: Spdy{RstStream,GoAway}Status -> SpdyErrorCode. (Closed)
Patch Set: Merged master, which includes 145087791. Created 3 years, 11 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/bidirectional_stream_spdy_impl_unittest.cc ('k') | net/spdy/buffered_spdy_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer.h
diff --git a/net/spdy/buffered_spdy_framer.h b/net/spdy/buffered_spdy_framer.h
index 4352e7fd3ca7e1aab7aae8505d814d9f9fdcd8a4..ffd03a126e9b09f75359a2eec664e0f888ffd3af 100644
--- a/net/spdy/buffered_spdy_framer.h
+++ b/net/spdy/buffered_spdy_framer.h
@@ -81,11 +81,11 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramerVisitorInterface {
// Called when a RST_STREAM frame has been parsed.
virtual void OnRstStream(SpdyStreamId stream_id,
- SpdyRstStreamStatus status) = 0;
+ SpdyErrorCode error_code) = 0;
// Called when a GOAWAY frame has been parsed.
virtual void OnGoAway(SpdyStreamId last_accepted_stream_id,
- SpdyGoAwayStatus status,
+ SpdyErrorCode error_code,
base::StringPiece debug_data) = 0;
// Called when a WINDOW_UPDATE frame has been parsed.
@@ -155,9 +155,9 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
void OnSettingsAck() override;
void OnSettingsEnd() override;
void OnPing(SpdyPingId unique_id, bool is_ack) override;
- void OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) override;
+ void OnRstStream(SpdyStreamId stream_id, SpdyErrorCode error_code) override;
void OnGoAway(SpdyStreamId last_accepted_stream_id,
- SpdyGoAwayStatus status) override;
+ SpdyErrorCode error_code) override;
bool OnGoAwayFrameData(const char* goaway_data, size_t len) override;
void OnWindowUpdate(SpdyStreamId stream_id, int delta_window_size) override;
void OnPushPromise(SpdyStreamId stream_id,
@@ -182,11 +182,11 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
bool MessageFullyRead();
bool HasError();
SpdySerializedFrame* CreateRstStream(SpdyStreamId stream_id,
- SpdyRstStreamStatus status) const;
+ SpdyErrorCode error_code) const;
SpdySerializedFrame* CreateSettings(const SettingsMap& values) const;
SpdySerializedFrame* CreatePingFrame(SpdyPingId unique_id, bool is_ack) const;
SpdySerializedFrame* CreateGoAway(SpdyStreamId last_accepted_stream_id,
- SpdyGoAwayStatus status,
+ SpdyErrorCode error_code,
base::StringPiece debug_data) const;
SpdySerializedFrame* CreateHeaders(SpdyStreamId stream_id,
SpdyControlFlags flags,
@@ -267,7 +267,7 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
// Collection of fields of a GOAWAY frame that this class needs to buffer.
struct GoAwayFields {
SpdyStreamId last_accepted_stream_id;
- SpdyGoAwayStatus status;
+ SpdyErrorCode error_code;
std::string debug_data;
};
std::unique_ptr<GoAwayFields> goaway_fields_;
« no previous file with comments | « net/spdy/bidirectional_stream_spdy_impl_unittest.cc ('k') | net/spdy/buffered_spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698