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

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

Issue 1413683005: Add new, unused methods to SpdyFramerVisitorInterface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors of flip_in_mem_edsm_server_unittests target. Created 5 years, 1 month 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/flip_server/spdy_interface_test.cc » ('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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
247 void SpdySM::OnSynStream(SpdyStreamId stream_id, 259 void SpdySM::OnSynStream(SpdyStreamId stream_id,
248 SpdyStreamId associated_stream_id, 260 SpdyStreamId associated_stream_id,
249 SpdyPriority priority, 261 SpdyPriority priority,
250 bool fin, 262 bool fin,
251 bool unidirectional, 263 bool unidirectional,
252 const SpdyHeaderBlock& headers) { 264 const SpdyHeaderBlock& headers) {
253 std::string http_data; 265 std::string http_data;
254 bool is_https_scheme; 266 bool is_https_scheme;
255 int ret = SpdyHandleNewStream( 267 int ret = SpdyHandleNewStream(
256 stream_id, priority, headers, http_data, &is_https_scheme); 268 stream_id, priority, headers, http_data, &is_https_scheme);
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } 639 }
628 } 640 }
629 641
630 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) { 642 void SpdySM::CreateFramer(SpdyMajorVersion spdy_version) {
631 DCHECK(!buffered_spdy_framer_); 643 DCHECK(!buffered_spdy_framer_);
632 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true)); 644 buffered_spdy_framer_.reset(new BufferedSpdyFramer(spdy_version, true));
633 buffered_spdy_framer_->set_visitor(this); 645 buffered_spdy_framer_->set_visitor(this);
634 } 646 }
635 647
636 } // namespace net 648 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/flip_server/spdy_interface.h ('k') | net/tools/flip_server/spdy_interface_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698