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

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

Issue 12256004: Remove SpdySynReplyControlFrame and SpdyGoAwayControlFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_protocol_test.cc ('k') | no next file » | 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 return df_size; 442 return df_size;
443 } 443 }
444 444
445 size_t SpdySM::SendSynReplyImpl(uint32 stream_id, const BalsaHeaders& headers) { 445 size_t SpdySM::SendSynReplyImpl(uint32 stream_id, const BalsaHeaders& headers) {
446 SpdyHeaderBlock block; 446 SpdyHeaderBlock block;
447 CopyHeaders(block, headers); 447 CopyHeaders(block, headers);
448 block["status"] = headers.response_code().as_string() + " " + 448 block["status"] = headers.response_code().as_string() + " " +
449 headers.response_reason_phrase().as_string(); 449 headers.response_reason_phrase().as_string();
450 block["version"] = headers.response_version().as_string(); 450 block["version"] = headers.response_version().as_string();
451 451
452 SpdySynReplyControlFrame* fsrcf = buffered_spdy_framer_->CreateSynReply( 452 SpdyFrame* fsrcf = buffered_spdy_framer_->CreateSynReply(
453 stream_id, CONTROL_FLAG_NONE, true, &block); 453 stream_id, CONTROL_FLAG_NONE, true, &block);
454 size_t df_size = fsrcf->length() + SpdyFrame::kHeaderSize; 454 size_t df_size = fsrcf->length() + SpdyFrame::kHeaderSize;
455 EnqueueDataFrame(new SpdyFrameDataFrame(fsrcf)); 455 EnqueueDataFrame(new SpdyFrameDataFrame(fsrcf));
456 456
457 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: Sending SynReplyheader " 457 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: Sending SynReplyheader "
458 << stream_id; 458 << stream_id;
459 return df_size; 459 return df_size;
460 } 460 }
461 461
462 void SpdySM::SendDataFrameImpl(uint32 stream_id, const char* data, int64 len, 462 void SpdySM::SendDataFrameImpl(uint32 stream_id, const char* data, int64 len,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 mci->file_data->body.data() + mci->body_bytes_consumed, 554 mci->file_data->body.data() + mci->body_bytes_consumed,
555 num_to_write, 0, should_compress); 555 num_to_write, 0, should_compress);
556 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: GetOutput SendDataFrame[" 556 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: GetOutput SendDataFrame["
557 << mci->stream_id << "]: " << num_to_write; 557 << mci->stream_id << "]: " << num_to_write;
558 mci->body_bytes_consumed += num_to_write; 558 mci->body_bytes_consumed += num_to_write;
559 mci->bytes_sent += num_to_write; 559 mci->bytes_sent += num_to_write;
560 } 560 }
561 } 561 }
562 562
563 } // namespace net 563 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698