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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 const SpdyHeaderBlock& headers) { | 289 const SpdyHeaderBlock& headers) { |
290 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnHeaders(" << stream_id << ")"; | 290 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnHeaders(" << stream_id << ")"; |
291 } | 291 } |
292 | 292 |
293 void SpdySM::OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) { | 293 void SpdySM::OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) { |
294 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnRstStream(" << stream_id | 294 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: OnRstStream(" << stream_id |
295 << ")"; | 295 << ")"; |
296 client_output_ordering_.RemoveStreamId(stream_id); | 296 client_output_ordering_.RemoveStreamId(stream_id); |
297 } | 297 } |
298 | 298 |
| 299 bool SpdySM::OnUnknownFrame(SpdyStreamId stream_id, int frame_type) { |
| 300 return false; |
| 301 } |
| 302 |
299 size_t SpdySM::ProcessReadInput(const char* data, size_t len) { | 303 size_t SpdySM::ProcessReadInput(const char* data, size_t len) { |
300 DCHECK(buffered_spdy_framer_); | 304 DCHECK(buffered_spdy_framer_); |
301 return buffered_spdy_framer_->ProcessInput(data, len); | 305 return buffered_spdy_framer_->ProcessInput(data, len); |
302 } | 306 } |
303 | 307 |
304 size_t SpdySM::ProcessWriteInput(const char* data, size_t len) { return 0; } | 308 size_t SpdySM::ProcessWriteInput(const char* data, size_t len) { return 0; } |
305 | 309 |
306 bool SpdySM::MessageFullyRead() const { | 310 bool SpdySM::MessageFullyRead() const { |
307 DCHECK(buffered_spdy_framer_); | 311 DCHECK(buffered_spdy_framer_); |
308 return buffered_spdy_framer_->MessageFullyRead(); | 312 return buffered_spdy_framer_->MessageFullyRead(); |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 } | 619 } |
616 } | 620 } |
617 | 621 |
618 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { | 622 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { |
619 DCHECK(!buffered_spdy_framer_); | 623 DCHECK(!buffered_spdy_framer_); |
620 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); | 624 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); |
621 buffered_spdy_framer_->set_visitor(this); | 625 buffered_spdy_framer_->set_visitor(this); |
622 } | 626 } |
623 | 627 |
624 } // namespace net | 628 } // namespace net |
OLD | NEW |