Chromium Code Reviews

Side by Side Diff: net/spdy/spdy_protocol.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_read_queue.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...)
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...)
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_read_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine