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

Unified Diff: net/spdy/spdy_framer.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/spdy_framer.h ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc
index de7a7a360605be933c3dcfbe67489f66078e9b7c..c08b59763323e33f5a2e3a8e8cc349252aecd282 100644
--- a/net/spdy/spdy_framer.cc
+++ b/net/spdy/spdy_framer.cc
@@ -480,6 +480,10 @@ const char* SpdyFramer::StatusCodeToString(int status_code) {
return "CONNECT_ERROR";
case RST_STREAM_ENHANCE_YOUR_CALM:
return "ENHANCE_YOUR_CALM";
+ case RST_STREAM_INADEQUATE_SECURITY:
+ return "INADEQUATE_SECURITY";
+ case RST_STREAM_HTTP_1_1_REQUIRED:
+ return "HTTP_1_1_REQUIRED";
}
return "UNKNOWN_STATUS";
}
@@ -1497,33 +1501,19 @@ size_t SpdyFramer::ProcessControlFrameBeforeHeaderBlock(const char* data,
}
DCHECK(reader.IsDoneReading());
if (debug_visitor_) {
- // SPDY 4 reports HEADERS with PRIORITY as SYN_STREAM.
- SpdyFrameType reported_type = current_frame_type_;
- if (protocol_version() > SPDY3 && has_priority) {
- reported_type = SYN_STREAM;
- }
debug_visitor_->OnReceiveCompressedFrame(
current_frame_stream_id_,
- reported_type,
+ current_frame_type_,
current_frame_length_);
}
if (current_frame_type_ == SYN_REPLY) {
visitor_->OnSynReply(
current_frame_stream_id_,
(current_frame_flags_ & CONTROL_FLAG_FIN) != 0);
- } else if (protocol_version() > SPDY3 &&
- current_frame_flags_ & HEADERS_FLAG_PRIORITY) {
- // SPDY 4+ is missing SYN_STREAM. Simulate it so that API changes
- // can be made independent of wire changes.
- visitor_->OnSynStream(
- current_frame_stream_id_,
- 0, // associated_to_stream_id
- priority,
- current_frame_flags_ & CONTROL_FLAG_FIN,
- false); // unidirectional
} else {
visitor_->OnHeaders(
current_frame_stream_id_,
+ (current_frame_flags_ & HEADERS_FLAG_PRIORITY) != 0, priority,
(current_frame_flags_ & CONTROL_FLAG_FIN) != 0,
expect_continuation_ == 0);
}
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698