| 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/tools/flip_server/spdy_interface.h" | 5 #include "net/tools/flip_server/spdy_interface.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/spdy/spdy_framer.h" | 10 #include "net/spdy/spdy_framer.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 void SpdySM::OnSynReply(SpdyStreamId stream_id, | 279 void SpdySM::OnSynReply(SpdyStreamId stream_id, |
| 280 bool fin, | 280 bool fin, |
| 281 const SpdyHeaderBlock& headers) { | 281 const SpdyHeaderBlock& headers) { |
| 282 // TODO(willchan): if there is an error parsing headers, we | 282 // TODO(willchan): if there is an error parsing headers, we |
| 283 // should send a RST_STREAM. | 283 // should send a RST_STREAM. |
| 284 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnSynReply(" << stream_id << ")"; | 284 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnSynReply(" << stream_id << ")"; |
| 285 } | 285 } |
| 286 | 286 |
| 287 void SpdySM::OnHeaders(SpdyStreamId stream_id, | 287 void SpdySM::OnHeaders(SpdyStreamId stream_id, |
| 288 bool has_priority, |
| 289 SpdyPriority priority, |
| 288 bool fin, | 290 bool fin, |
| 289 const SpdyHeaderBlock& headers) { | 291 const SpdyHeaderBlock& headers) { |
| 290 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnHeaders(" << stream_id << ")"; | 292 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnHeaders(" << stream_id << ")"; |
| 291 } | 293 } |
| 292 | 294 |
| 293 void SpdySM::OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) { | 295 void SpdySM::OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) { |
| 294 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnRstStream(" << stream_id | 296 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnRstStream(" << stream_id |
| 295 << ")"; | 297 << ")"; |
| 296 client_output_ordering_.RemoveStreamId(stream_id); | 298 client_output_ordering_.RemoveStreamId(stream_id); |
| 297 } | 299 } |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 } | 621 } |
| 620 } | 622 } |
| 621 | 623 |
| 622 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { | 624 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { |
| 623 DCHECK(!buffered_spdy_framer_); | 625 DCHECK(!buffered_spdy_framer_); |
| 624 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); | 626 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); |
| 625 buffered_spdy_framer_->set_visitor(this); | 627 buffered_spdy_framer_->set_visitor(this); |
| 626 } | 628 } |
| 627 | 629 |
| 628 } // namespace net | 630 } // namespace net |
| OLD | NEW |