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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/quic/quic_sustained_bandwidth_recorder_test.cc ('k') | net/quic/quic_unacked_packet_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef NET_QUIC_QUIC_TYPES_H_ 5 #ifndef NET_QUIC_QUIC_TYPES_H_
6 #define NET_QUIC_QUIC_TYPES_H_ 6 #define NET_QUIC_QUIC_TYPES_H_
7 7
8 // This header defines some basic types that don't depend on quic_protocol.h, 8 // This header defines some basic types that don't depend on quic_protocol.h,
9 // so that classes not directly related to the protocol wire format can avoid 9 // so that classes not directly related to the protocol wire format can avoid
10 // including quic_protocol.h. 10 // including quic_protocol.h.
11 11
12 #include <stddef.h> 12 #include <stddef.h>
13
13 #include <ostream> 14 #include <ostream>
14 15
15 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
16 17
17 namespace net { 18 namespace net {
18 19
19 // A struct for functions which consume data payloads and fins. 20 // A struct for functions which consume data payloads and fins.
20 struct NET_EXPORT_PRIVATE QuicConsumedData { 21 struct NET_EXPORT_PRIVATE QuicConsumedData {
21 QuicConsumedData(size_t bytes_consumed, bool fin_consumed); 22 QuicConsumedData(size_t bytes_consumed, bool fin_consumed);
22 23
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 WriteStatus status; 61 WriteStatus status;
61 union { 62 union {
62 int bytes_written; // only valid when status is WRITE_STATUS_OK 63 int bytes_written; // only valid when status is WRITE_STATUS_OK
63 int error_code; // only valid when status is WRITE_STATUS_ERROR 64 int error_code; // only valid when status is WRITE_STATUS_ERROR
64 }; 65 };
65 }; 66 };
66 67
67 } // namespace net 68 } // namespace net
68 69
69 #endif // NET_QUIC_QUIC_TYPES_H_ 70 #endif // NET_QUIC_QUIC_TYPES_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sustained_bandwidth_recorder_test.cc ('k') | net/quic/quic_unacked_packet_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698