| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 SMInterface* interface = it->second; | 232 SMInterface* interface = it->second; |
| 233 if (acceptor_->flip_handler_type_ == FLIP_HANDLER_PROXY) | 233 if (acceptor_->flip_handler_type_ == FLIP_HANDLER_PROXY) |
| 234 interface->ProcessWriteInput(nullptr, 0); | 234 interface->ProcessWriteInput(nullptr, 0); |
| 235 } | 235 } |
| 236 | 236 |
| 237 void SpdySM::OnStreamPadding(SpdyStreamId stream_id, size_t len) { | 237 void SpdySM::OnStreamPadding(SpdyStreamId stream_id, size_t len) { |
| 238 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: StreamPadding(" << stream_id | 238 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: StreamPadding(" << stream_id |
| 239 << ", [" << len << "])"; | 239 << ", [" << len << "])"; |
| 240 } | 240 } |
| 241 | 241 |
| 242 SpdyHeadersHandlerInterface* SpdySM::OnHeaderFrameStart( |
| 243 SpdyStreamId stream_id) { |
| 244 LOG(FATAL) << ACCEPTOR_CLIENT_IDENT |
| 245 << "SpdySM::OnHeaderFrameStart() not implemented."; |
| 246 return nullptr; |
| 247 } |
| 248 |
| 249 void SpdySM::OnHeaderFrameEnd(SpdyStreamId stream_id, bool end_headers) { |
| 250 LOG(FATAL) << ACCEPTOR_CLIENT_IDENT |
| 251 << "SpdySM::OnHeaderFrameEnd() not implemented."; |
| 252 } |
| 253 |
| 242 void SpdySM::OnSynStream(SpdyStreamId stream_id, | 254 void SpdySM::OnSynStream(SpdyStreamId stream_id, |
| 243 SpdyStreamId associated_stream_id, | 255 SpdyStreamId associated_stream_id, |
| 244 SpdyPriority priority, | 256 SpdyPriority priority, |
| 245 bool fin, | 257 bool fin, |
| 246 bool unidirectional, | 258 bool unidirectional, |
| 247 const SpdyHeaderBlock& headers) { | 259 const SpdyHeaderBlock& headers) { |
| 248 std::string http_data; | 260 std::string http_data; |
| 249 bool is_https_scheme; | 261 bool is_https_scheme; |
| 250 int ret = SpdyHandleNewStream( | 262 int ret = SpdyHandleNewStream( |
| 251 stream_id, priority, headers, http_data, &is_https_scheme); | 263 stream_id, priority, headers, http_data, &is_https_scheme); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 } | 618 } |
| 607 } | 619 } |
| 608 | 620 |
| 609 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { | 621 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { |
| 610 DCHECK(!buffered_spdy_framer_); | 622 DCHECK(!buffered_spdy_framer_); |
| 611 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version)); | 623 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version)); |
| 612 buffered_spdy_framer_->set_visitor(this); | 624 buffered_spdy_framer_->set_visitor(this); |
| 613 } | 625 } |
| 614 | 626 |
| 615 } // namespace net | 627 } // namespace net |
| OLD | NEW |