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

Unified Diff: webrtc/p2p/base/stunport.cc

Issue 1835053002: Change default timestamp to 64 bits in all webrtc directories. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO for timestamp. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/pseudotcp_unittest.cc ('k') | webrtc/pc/currentspeakermonitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/stunport.cc
diff --git a/webrtc/p2p/base/stunport.cc b/webrtc/p2p/base/stunport.cc
index 078070b17fb3e1c2b1c93206c4eabc6253ba0315..8ed8c44887238ca5e260113783a96e21e6731a76 100644
--- a/webrtc/p2p/base/stunport.cc
+++ b/webrtc/p2p/base/stunport.cc
@@ -87,7 +87,7 @@ class StunBindingRequest : public StunRequest {
int64_t now = rtc::TimeMillis();
if (WithinLifetime(now) &&
- rtc::TimeDiff64(now, start_time_) < RETRY_TIMEOUT) {
+ rtc::TimeDiff(now, start_time_) < RETRY_TIMEOUT) {
port_->requests_.SendDelayed(
new StunBindingRequest(port_, server_addr_, start_time_, lifetime_),
port_->stun_keepalive_delay());
@@ -105,7 +105,7 @@ class StunBindingRequest : public StunRequest {
// Returns true if |now| is within the lifetime of the request (a negative
// lifetime means infinite).
bool WithinLifetime(int64_t now) const {
- return lifetime_ < 0 || rtc::TimeDiff64(now, start_time_) <= lifetime_;
+ return lifetime_ < 0 || rtc::TimeDiff(now, start_time_) <= lifetime_;
}
UDPPort* port_;
const rtc::SocketAddress server_addr_;
« no previous file with comments | « webrtc/p2p/base/pseudotcp_unittest.cc ('k') | webrtc/pc/currentspeakermonitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698