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

Side by Side Diff: webrtc/system_wrappers/include/ntp_time.h

Issue 2609783002: Reland of place basictypes.h with stdint.h for int_t types. (Closed)
Patch Set: add basictypes.h to systeminfo.cc Created 3 years, 11 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
« no previous file with comments | « webrtc/sdk/android/src/jni/androidnetworkmonitor_jni.h ('k') | webrtc/test/frame_utils.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 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_ 10 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_
11 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_ 11 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_
12 12
13 #include "webrtc/base/basictypes.h" 13 #include <stdint.h>
14
14 #include "webrtc/system_wrappers/include/clock.h" 15 #include "webrtc/system_wrappers/include/clock.h"
15 16
16 namespace webrtc { 17 namespace webrtc {
17 18
18 class NtpTime { 19 class NtpTime {
19 public: 20 public:
20 NtpTime() : seconds_(0), fractions_(0) {} 21 NtpTime() : seconds_(0), fractions_(0) {}
21 explicit NtpTime(const Clock& clock) { 22 explicit NtpTime(const Clock& clock) {
22 clock.CurrentNtp(seconds_, fractions_); 23 clock.CurrentNtp(seconds_, fractions_);
23 } 24 }
(...skipping 30 matching lines...) Expand all
54 55
55 inline bool operator==(const NtpTime& n1, const NtpTime& n2) { 56 inline bool operator==(const NtpTime& n1, const NtpTime& n2) {
56 return n1.seconds() == n2.seconds() && n1.fractions() == n2.fractions(); 57 return n1.seconds() == n2.seconds() && n1.fractions() == n2.fractions();
57 } 58 }
58 inline bool operator!=(const NtpTime& n1, const NtpTime& n2) { 59 inline bool operator!=(const NtpTime& n1, const NtpTime& n2) {
59 return !(n1 == n2); 60 return !(n1 == n2);
60 } 61 }
61 62
62 } // namespace webrtc 63 } // namespace webrtc
63 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_ 64 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_NTP_TIME_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/jni/androidnetworkmonitor_jni.h ('k') | webrtc/test/frame_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698