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

Unified Diff: net/spdy/buffered_spdy_framer.cc

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/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer.cc
diff --git a/net/spdy/buffered_spdy_framer.cc b/net/spdy/buffered_spdy_framer.cc
index fc583686fd94c2c19872b4ec075dd39eeec83c8f..fbedb84c1e49a12b334bbed44db7ef79f9bb5e38 100644
--- a/net/spdy/buffered_spdy_framer.cc
+++ b/net/spdy/buffered_spdy_framer.cc
@@ -147,15 +147,15 @@ void BufferedSpdyFramer::OnPing(SpdyPingId unique_id, bool is_ack) {
}
void BufferedSpdyFramer::OnRstStream(SpdyStreamId stream_id,
- SpdyRstStreamStatus status) {
- visitor_->OnRstStream(stream_id, status);
+ SpdyErrorCode error_code) {
+ visitor_->OnRstStream(stream_id, error_code);
}
void BufferedSpdyFramer::OnGoAway(SpdyStreamId last_accepted_stream_id,
- SpdyGoAwayStatus status) {
+ SpdyErrorCode error_code) {
DCHECK(!goaway_fields_);
goaway_fields_.reset(new GoAwayFields());
goaway_fields_->last_accepted_stream_id = last_accepted_stream_id;
- goaway_fields_->status = status;
+ goaway_fields_->error_code = error_code;
}
bool BufferedSpdyFramer::OnGoAwayFrameData(const char* goaway_data,
@@ -169,7 +169,7 @@ bool BufferedSpdyFramer::OnGoAwayFrameData(const char* goaway_data,
return true;
}
visitor_->OnGoAway(goaway_fields_->last_accepted_stream_id,
- goaway_fields_->status, goaway_fields_->debug_data);
+ goaway_fields_->error_code, goaway_fields_->debug_data);
goaway_fields_.reset();
return true;
}
@@ -239,8 +239,8 @@ bool BufferedSpdyFramer::HasError() {
// SpdyRstStreamIR).
SpdySerializedFrame* BufferedSpdyFramer::CreateRstStream(
SpdyStreamId stream_id,
- SpdyRstStreamStatus status) const {
- SpdyRstStreamIR rst_ir(stream_id, status);
+ SpdyErrorCode error_code) const {
+ SpdyRstStreamIR rst_ir(stream_id, error_code);
return new SpdySerializedFrame(spdy_framer_.SerializeRstStream(rst_ir));
}
@@ -267,9 +267,9 @@ SpdySerializedFrame* BufferedSpdyFramer::CreatePingFrame(SpdyPingId unique_id,
// TODO(jgraettinger): Eliminate uses of this method (prefer SpdyGoAwayIR).
SpdySerializedFrame* BufferedSpdyFramer::CreateGoAway(
SpdyStreamId last_accepted_stream_id,
- SpdyGoAwayStatus status,
+ SpdyErrorCode error_code,
base::StringPiece debug_data) const {
- SpdyGoAwayIR go_ir(last_accepted_stream_id, status, debug_data);
+ SpdyGoAwayIR go_ir(last_accepted_stream_id, error_code, debug_data);
return new SpdySerializedFrame(spdy_framer_.SerializeGoAway(go_ir));
}
« no previous file with comments | « net/spdy/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698