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

Side by Side Diff: net/quic/core/quic_connection_stats.h

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_QUIC_CONNECTION_STATS_H_ 5 #ifndef NET_QUIC_CORE_QUIC_CONNECTION_STATS_H_
6 #define NET_QUIC_CORE_QUIC_CONNECTION_STATS_H_ 6 #define NET_QUIC_CORE_QUIC_CONNECTION_STATS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <ostream> 11 #include <ostream>
12 12
13 #include "net/base/net_export.h"
14 #include "net/quic/core/quic_bandwidth.h" 13 #include "net/quic/core/quic_bandwidth.h"
15 #include "net/quic/core/quic_packets.h" 14 #include "net/quic/core/quic_packets.h"
16 #include "net/quic/core/quic_time.h" 15 #include "net/quic/core/quic_time.h"
16 #include "net/quic/platform/api/quic_export.h"
17 17
18 namespace net { 18 namespace net {
19 // Structure to hold stats for a QuicConnection. 19 // Structure to hold stats for a QuicConnection.
20 struct NET_EXPORT_PRIVATE QuicConnectionStats { 20 struct QUIC_EXPORT_PRIVATE QuicConnectionStats {
21 QuicConnectionStats(); 21 QuicConnectionStats();
22 QuicConnectionStats(const QuicConnectionStats& other); 22 QuicConnectionStats(const QuicConnectionStats& other);
23 ~QuicConnectionStats(); 23 ~QuicConnectionStats();
24 24
25 NET_EXPORT_PRIVATE friend std::ostream& operator<<( 25 QUIC_EXPORT_PRIVATE friend std::ostream& operator<<(
26 std::ostream& os, 26 std::ostream& os,
27 const QuicConnectionStats& s); 27 const QuicConnectionStats& s);
28 28
29 QuicByteCount bytes_sent; // Includes retransmissions. 29 QuicByteCount bytes_sent; // Includes retransmissions.
30 QuicPacketCount packets_sent; 30 QuicPacketCount packets_sent;
31 // Non-retransmitted bytes sent in a stream frame. 31 // Non-retransmitted bytes sent in a stream frame.
32 QuicByteCount stream_bytes_sent; 32 QuicByteCount stream_bytes_sent;
33 // Packets serialized and discarded before sending. 33 // Packets serialized and discarded before sending.
34 QuicPacketCount packets_discarded; 34 QuicPacketCount packets_discarded;
35 35
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Creation time, as reported by the QuicClock. 87 // Creation time, as reported by the QuicClock.
88 QuicTime connection_creation_time; 88 QuicTime connection_creation_time;
89 89
90 uint64_t blocked_frames_received; 90 uint64_t blocked_frames_received;
91 uint64_t blocked_frames_sent; 91 uint64_t blocked_frames_sent;
92 }; 92 };
93 93
94 } // namespace net 94 } // namespace net
95 95
96 #endif // NET_QUIC_CORE_QUIC_CONNECTION_STATS_H_ 96 #endif // NET_QUIC_CORE_QUIC_CONNECTION_STATS_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection_close_delegate_interface.h ('k') | net/quic/core/quic_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698