Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: net/tools/flip_server/spdy_interface.cc

Issue 1961573002: Avoids the "re-encode HPACK as SPDY3" step. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update new test Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/tools/flip_server/spdy_interface.h ('k') | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
254 void SpdySM::OnSynStream(SpdyStreamId stream_id, 242 void SpdySM::OnSynStream(SpdyStreamId stream_id,
255 SpdyStreamId associated_stream_id, 243 SpdyStreamId associated_stream_id,
256 SpdyPriority priority, 244 SpdyPriority priority,
257 bool fin, 245 bool fin,
258 bool unidirectional, 246 bool unidirectional,
259 const SpdyHeaderBlock& headers) { 247 const SpdyHeaderBlock& headers) {
260 std::string http_data; 248 std::string http_data;
261 bool is_https_scheme; 249 bool is_https_scheme;
262 int ret = SpdyHandleNewStream( 250 int ret = SpdyHandleNewStream(
263 stream_id, priority, headers, http_data, &is_https_scheme); 251 stream_id, priority, headers, http_data, &is_https_scheme);
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 } 606 }
619 } 607 }
620 608
621 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { 609 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) {
622 DCHECK(!buffered_spdy_framer_); 610 DCHECK(!buffered_spdy_framer_);
623 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version)); 611 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version));
624 buffered_spdy_framer_->set_visitor(this); 612 buffered_spdy_framer_->set_visitor(this);
625 } 613 }
626 614
627 } // namespace net 615 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/flip_server/spdy_interface.h ('k') | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698