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

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

Issue 1923213002: Rename rtc::Time64 --> rtc::TimeMillis. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Clarify TODO comment. Created 4 years, 8 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/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/port_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/port.cc
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
index 0238aa2ba207ac7b4478f2ad40797d562c1bcea4..5470e7187eefd2130dfd0f0f2f84e76d165a4421 100644
--- a/webrtc/p2p/base/port.cc
+++ b/webrtc/p2p/base/port.cc
@@ -797,7 +797,7 @@ Connection::Connection(Port* port,
reported_(false),
state_(STATE_WAITING),
receiving_timeout_(WEAK_CONNECTION_RECEIVE_TIMEOUT),
- time_created_ms_(rtc::Time64()) {
+ time_created_ms_(rtc::TimeMillis()) {
// All of our connections start in WAITING state.
// TODO(mallinath) - Start connections from STATE_FROZEN.
// Wire up to send stun packets
@@ -902,7 +902,7 @@ void Connection::OnReadPacket(
// The packet did not parse as a valid STUN message
// This is a data packet, pass it along.
set_receiving(true);
- last_data_received_ = rtc::Time64();
+ last_data_received_ = rtc::TimeMillis();
recv_rate_tracker_.AddSamples(size);
SignalReadPacket(this, data, size, packet_time);
@@ -1117,7 +1117,7 @@ void Connection::Ping(int64_t now) {
void Connection::ReceivedPing() {
set_receiving(true);
- last_ping_received_ = rtc::Time64();
+ last_ping_received_ = rtc::TimeMillis();
}
void Connection::ReceivedPingResponse() {
@@ -1130,7 +1130,7 @@ void Connection::ReceivedPingResponse() {
set_write_state(STATE_WRITABLE);
set_state(STATE_SUCCEEDED);
pings_since_last_response_.clear();
- last_ping_response_received_ = rtc::Time64();
+ last_ping_response_received_ = rtc::TimeMillis();
}
bool Connection::dead(int64_t now) const {
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/port_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698