1 // Copyright 2014 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/quic/quic_types.h"
11 QuicConsumedData::QuicConsumedData(size_t bytes_consumed
,
13 : bytes_consumed(bytes_consumed
),
14 fin_consumed(fin_consumed
) {
17 ostream
& operator<<(ostream
& os
, const QuicConsumedData
& s
) {
18 os
<< "bytes_consumed: " << s
.bytes_consumed
19 << " fin_consumed: " << s
.fin_consumed
;
23 WriteResult::WriteResult()
24 : status(WRITE_STATUS_ERROR
),
28 WriteResult::WriteResult(WriteStatus status
,
29 int bytes_written_or_error_code
)
31 bytes_written(bytes_written_or_error_code
) {