| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 SMInterface* interface = it->second; | 237 SMInterface* interface = it->second; |
| 238 if (acceptor_->flip_handler_type_ == FLIP_HANDLER_PROXY) | 238 if (acceptor_->flip_handler_type_ == FLIP_HANDLER_PROXY) |
| 239 interface->ProcessWriteInput(data, len); | 239 interface->ProcessWriteInput(data, len); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void SpdySM::OnStreamPadding(SpdyStreamId stream_id, size_t len) { | 242 void SpdySM::OnStreamPadding(SpdyStreamId stream_id, size_t len) { |
| 243 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: StreamPadding(" << stream_id | 243 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: StreamPadding(" << stream_id |
| 244 << ", [" << len << "])"; | 244 << ", [" << len << "])"; |
| 245 } | 245 } |
| 246 | 246 |
| 247 SpdyHeadersHandlerInterface* SpdySM::OnHeaderFrameStart( | |
| 248 SpdyStreamId stream_id) { | |
| 249 LOG(FATAL) << ACCEPTOR_CLIENT_IDENT | |
| 250 << "SpdySM::OnHeaderFrameStart() not implemented."; | |
| 251 return nullptr; | |
| 252 } | |
| 253 | |
| 254 void SpdySM::OnHeaderFrameEnd(SpdyStreamId stream_id, bool end_headers) { | |
| 255 LOG(FATAL) << ACCEPTOR_CLIENT_IDENT | |
| 256 << "SpdySM::OnHeaderFrameEnd() not implemented."; | |
| 257 } | |
| 258 | |
| 259 void SpdySM::OnSynStream(SpdyStreamId stream_id, | 247 void SpdySM::OnSynStream(SpdyStreamId stream_id, |
| 260 SpdyStreamId associated_stream_id, | 248 SpdyStreamId associated_stream_id, |
| 261 SpdyPriority priority, | 249 SpdyPriority priority, |
| 262 bool fin, | 250 bool fin, |
| 263 bool unidirectional, | 251 bool unidirectional, |
| 264 const SpdyHeaderBlock& headers) { | 252 const SpdyHeaderBlock& headers) { |
| 265 std::string http_data; | 253 std::string http_data; |
| 266 bool is_https_scheme; | 254 bool is_https_scheme; |
| 267 int ret = SpdyHandleNewStream( | 255 int ret = SpdyHandleNewStream( |
| 268 stream_id, priority, headers, http_data, &is_https_scheme); | 256 stream_id, priority, headers, http_data, &is_https_scheme); |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 } | 627 } |
| 640 } | 628 } |
| 641 | 629 |
| 642 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { | 630 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { |
| 643 DCHECK(!buffered_spdy_framer_); | 631 DCHECK(!buffered_spdy_framer_); |
| 644 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); | 632 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); |
| 645 buffered_spdy_framer_->set_visitor(this); | 633 buffered_spdy_framer_->set_visitor(this); |
| 646 } | 634 } |
| 647 | 635 |
| 648 } // namespace net | 636 } // namespace net |
| OLD | NEW |