Lots of random cleanups, mostly for native_theme_win.cc:
[chromium-blink-merge.git] / net / quic / quic_types.cc
blobcdfb36dbccbf78e35a7bd23f188d1be40d946e3f
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"
7 using std::ostream;
9 namespace net {
11 QuicConsumedData::QuicConsumedData(size_t bytes_consumed,
12 bool fin_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;
20 return os;
23 WriteResult::WriteResult()
24 : status(WRITE_STATUS_ERROR),
25 bytes_written(0) {
28 WriteResult::WriteResult(WriteStatus status,
29 int bytes_written_or_error_code)
30 : status(status),
31 bytes_written(bytes_written_or_error_code) {
34 } // namespace net