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

Side by Side Diff: net/quic/core/quic_bandwidth.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
« no previous file with comments | « net/quic/core/quic_alarm_factory.h ('k') | net/quic/core/quic_blocked_writer_interface.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // QuicBandwidth represents a bandwidth, stored in bits per second resolution. 5 // QuicBandwidth represents a bandwidth, stored in bits per second resolution.
6 6
7 #ifndef NET_QUIC_CORE_QUIC_BANDWIDTH_H_ 7 #ifndef NET_QUIC_CORE_QUIC_BANDWIDTH_H_
8 #define NET_QUIC_CORE_QUIC_BANDWIDTH_H_ 8 #define NET_QUIC_CORE_QUIC_BANDWIDTH_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include <cmath> 12 #include <cmath>
13 #include <ostream> 13 #include <ostream>
14 14
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "net/base/net_export.h"
17 #include "net/quic/core/quic_time.h" 16 #include "net/quic/core/quic_time.h"
18 #include "net/quic/core/quic_types.h" 17 #include "net/quic/core/quic_types.h"
18 #include "net/quic/platform/api/quic_export.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 class NET_EXPORT_PRIVATE QuicBandwidth { 22 class QUIC_EXPORT_PRIVATE QuicBandwidth {
23 public: 23 public:
24 // Creates a new QuicBandwidth with an internal value of 0. 24 // Creates a new QuicBandwidth with an internal value of 0.
25 static QuicBandwidth Zero(); 25 static QuicBandwidth Zero();
26 26
27 // Creates a new QuicBandwidth with an internal value of INT64_MAX. 27 // Creates a new QuicBandwidth with an internal value of INT64_MAX.
28 static QuicBandwidth Infinite(); 28 static QuicBandwidth Infinite();
29 29
30 // Create a new QuicBandwidth holding the bits per second. 30 // Create a new QuicBandwidth holding the bits per second.
31 static QuicBandwidth FromBitsPerSecond(int64_t bits_per_second); 31 static QuicBandwidth FromBitsPerSecond(int64_t bits_per_second);
32 32
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Override stream output operator for gtest. 114 // Override stream output operator for gtest.
115 inline std::ostream& operator<<(std::ostream& output, 115 inline std::ostream& operator<<(std::ostream& output,
116 const QuicBandwidth bandwidth) { 116 const QuicBandwidth bandwidth) {
117 output << bandwidth.ToDebugValue(); 117 output << bandwidth.ToDebugValue();
118 return output; 118 return output;
119 } 119 }
120 120
121 } // namespace net 121 } // namespace net
122 #endif // NET_QUIC_CORE_QUIC_BANDWIDTH_H_ 122 #endif // NET_QUIC_CORE_QUIC_BANDWIDTH_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_alarm_factory.h ('k') | net/quic/core/quic_blocked_writer_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698