Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / net / tools / quic / quic_reliable_client_stream.cc
blob359fec4dd90b2814e7c0cdaf08cbbe014cf48301
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
3 // found in the LICENSE file.
5 #include "net/tools/quic/quic_reliable_client_stream.h"
7 using std::string;
9 namespace net {
10 namespace tools {
12 // Sends body data to the server and returns the number of bytes sent.
13 ssize_t QuicReliableClientStream::SendBody(const string& data, bool fin) {
14 return WriteData(data, fin).bytes_consumed;
17 bool QuicReliableClientStream::OnStreamFrame(const QuicStreamFrame& frame) {
18 if (!write_side_closed()) {
19 DLOG(INFO) << "Got a response before the request was complete. "
20 << "Aborting request.";
21 CloseWriteSide();
23 return ReliableQuicStream::OnStreamFrame(frame);
26 } // namespace tools
27 } // namespace net