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

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

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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
Index: webrtc/p2p/base/turnserver.cc
diff --git a/webrtc/p2p/base/turnserver.cc b/webrtc/p2p/base/turnserver.cc
index 16df6f944ba820252021866f3fa39f505da4c64d..fa7566c108b0ac3caba14141e338205e5e69ed71 100644
--- a/webrtc/p2p/base/turnserver.cc
+++ b/webrtc/p2p/base/turnserver.cc
@@ -631,7 +631,8 @@ void TurnServerAllocation::HandleAllocateRequest(const TurnMessage* msg) {
// Figure out the lifetime and start the allocation timer.
int lifetime_secs = ComputeLifetime(msg);
- thread_->PostDelayed(lifetime_secs * 1000, this, MSG_ALLOCATION_TIMEOUT);
+ thread_->PostDelayed(FROM_HERE, lifetime_secs * 1000, this,
+ MSG_ALLOCATION_TIMEOUT);
LOG_J(LS_INFO, this) << "Created allocation, lifetime=" << lifetime_secs;
@@ -659,7 +660,8 @@ void TurnServerAllocation::HandleRefreshRequest(const TurnMessage* msg) {
// Reset the expiration timer.
thread_->Clear(this, MSG_ALLOCATION_TIMEOUT);
- thread_->PostDelayed(lifetime_secs * 1000, this, MSG_ALLOCATION_TIMEOUT);
+ thread_->PostDelayed(FROM_HERE, lifetime_secs * 1000, this,
+ MSG_ALLOCATION_TIMEOUT);
LOG_J(LS_INFO, this) << "Refreshed allocation, lifetime=" << lifetime_secs;
@@ -924,7 +926,8 @@ TurnServerAllocation::Permission::~Permission() {
void TurnServerAllocation::Permission::Refresh() {
thread_->Clear(this, MSG_ALLOCATION_TIMEOUT);
- thread_->PostDelayed(kPermissionTimeout, this, MSG_ALLOCATION_TIMEOUT);
+ thread_->PostDelayed(FROM_HERE, kPermissionTimeout, this,
+ MSG_ALLOCATION_TIMEOUT);
}
void TurnServerAllocation::Permission::OnMessage(rtc::Message* msg) {
@@ -945,7 +948,8 @@ TurnServerAllocation::Channel::~Channel() {
void TurnServerAllocation::Channel::Refresh() {
thread_->Clear(this, MSG_ALLOCATION_TIMEOUT);
- thread_->PostDelayed(kChannelTimeout, this, MSG_ALLOCATION_TIMEOUT);
+ thread_->PostDelayed(FROM_HERE, kChannelTimeout, this,
+ MSG_ALLOCATION_TIMEOUT);
}
void TurnServerAllocation::Channel::OnMessage(rtc::Message* msg) {

Powered by Google App Engine
This is Rietveld 408576698