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

Side by Side Diff: net/quic/quic_types.cc

Issue 309013006: Add quic_types.h and move the typedefs unrelated to the QUIC protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/quic/quic_types.h ('k') | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 #include "net/quic/quic_types.h"
6
7 using std::ostream;
8
9 namespace net {
10
11 QuicConsumedData::QuicConsumedData(size_t bytes_consumed,
12 bool fin_consumed)
13 : bytes_consumed(bytes_consumed),
14 fin_consumed(fin_consumed) {
15 }
16
17 ostream& operator<<(ostream& os, const QuicConsumedData& s) {
18 os << "bytes_consumed: " << s.bytes_consumed
19 << " fin_consumed: " << s.fin_consumed;
20 return os;
21 }
22
23 WriteResult::WriteResult()
24 : status(WRITE_STATUS_ERROR),
25 bytes_written(0) {
26 }
27
28 WriteResult::WriteResult(WriteStatus status,
29 int bytes_written_or_error_code)
30 : status(status),
31 bytes_written(bytes_written_or_error_code) {
32 }
33
34 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_types.h ('k') | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698