| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 if (!valid_spdy_session_) | 233 if (!valid_spdy_session_) |
| 234 close_on_error_ = true; | 234 close_on_error_ = true; |
| 235 return; | 235 return; |
| 236 } | 236 } |
| 237 | 237 |
| 238 SMInterface* interface = it->second; | 238 SMInterface* interface = it->second; |
| 239 if (acceptor_->flip_handler_type_ == FLIP_HANDLER_PROXY) | 239 if (acceptor_->flip_handler_type_ == FLIP_HANDLER_PROXY) |
| 240 interface->ProcessWriteInput(data, len); | 240 interface->ProcessWriteInput(data, len); |
| 241 } | 241 } |
| 242 | 242 |
| 243 void SpdySM::OnStreamPadding(SpdyStreamId stream_id, size_t len) { |
| 244 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: StreamPadding(" << stream_id |
| 245 << ", [" << len << "])"; |
| 246 } |
| 247 |
| 243 void SpdySM::OnSynStream(SpdyStreamId stream_id, | 248 void SpdySM::OnSynStream(SpdyStreamId stream_id, |
| 244 SpdyStreamId associated_stream_id, | 249 SpdyStreamId associated_stream_id, |
| 245 SpdyPriority priority, | 250 SpdyPriority priority, |
| 246 bool fin, | 251 bool fin, |
| 247 bool unidirectional, | 252 bool unidirectional, |
| 248 const SpdyHeaderBlock& headers) { | 253 const SpdyHeaderBlock& headers) { |
| 249 std::string http_data; | 254 std::string http_data; |
| 250 bool is_https_scheme; | 255 bool is_https_scheme; |
| 251 int ret = SpdyHandleNewStream( | 256 int ret = SpdyHandleNewStream( |
| 252 stream_id, priority, headers, http_data, &is_https_scheme); | 257 stream_id, priority, headers, http_data, &is_https_scheme); |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 } | 626 } |
| 622 } | 627 } |
| 623 | 628 |
| 624 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { | 629 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { |
| 625 DCHECK(!buffered_spdy_framer_); | 630 DCHECK(!buffered_spdy_framer_); |
| 626 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); | 631 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); |
| 627 buffered_spdy_framer_->set_visitor(this); | 632 buffered_spdy_framer_->set_visitor(this); |
| 628 } | 633 } |
| 629 | 634 |
| 630 } // namespace net | 635 } // namespace net |
| OLD | NEW |