OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/spdy/spdy_protocol.h" | 5 #include "net/spdy/spdy_protocol.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 | 8 |
9 SpdyFrameWithNameValueBlockIR::SpdyFrameWithNameValueBlockIR( | 9 SpdyFrameWithNameValueBlockIR::SpdyFrameWithNameValueBlockIR( |
10 SpdyStreamId stream_id) : SpdyFrameWithFinIR(stream_id) {} | 10 SpdyStreamId stream_id) : SpdyFrameWithFinIR(stream_id) {} |
(...skipping 524 matching lines...) Loading... |
535 | 535 |
536 return true; | 536 return true; |
537 case SPDY4: | 537 case SPDY4: |
538 case SPDY5: | 538 case SPDY5: |
539 // GOAWAY_NO_ERROR is the first valid status. | 539 // GOAWAY_NO_ERROR is the first valid status. |
540 if (goaway_status_field < SerializeGoAwayStatus(version, | 540 if (goaway_status_field < SerializeGoAwayStatus(version, |
541 GOAWAY_NO_ERROR)) { | 541 GOAWAY_NO_ERROR)) { |
542 return false; | 542 return false; |
543 } | 543 } |
544 | 544 |
545 // GOAWAY_INADEQUATE_SECURITY is the last valid status. | 545 // GOAWAY_HTTP_1_1_REQUIRED is the last valid status. |
546 if (goaway_status_field > | 546 if (goaway_status_field > |
547 SerializeGoAwayStatus(version, GOAWAY_INADEQUATE_SECURITY)) { | 547 SerializeGoAwayStatus(version, GOAWAY_HTTP_1_1_REQUIRED)) { |
548 return false; | 548 return false; |
549 } | 549 } |
550 | 550 |
551 return true; | 551 return true; |
552 } | 552 } |
553 LOG(DFATAL) << "Unknown SpdyMajorVersion " << version; | 553 LOG(DFATAL) << "Unknown SpdyMajorVersion " << version; |
554 return false; | 554 return false; |
555 } | 555 } |
556 | 556 |
557 SpdyGoAwayStatus SpdyConstants::ParseGoAwayStatus(SpdyMajorVersion version, | 557 SpdyGoAwayStatus SpdyConstants::ParseGoAwayStatus(SpdyMajorVersion version, |
(...skipping 319 matching lines...) Loading... |
877 parent_stream_id_(parent_stream_id), | 877 parent_stream_id_(parent_stream_id), |
878 weight_(weight), | 878 weight_(weight), |
879 exclusive_(exclusive) { | 879 exclusive_(exclusive) { |
880 } | 880 } |
881 | 881 |
882 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const { | 882 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const { |
883 return visitor->VisitPriority(*this); | 883 return visitor->VisitPriority(*this); |
884 } | 884 } |
885 | 885 |
886 } // namespace net | 886 } // namespace net |
OLD | NEW |