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

Unified Diff: webrtc/api/dtlsidentitystore.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/api/dtlsidentitystore.cc
diff --git a/webrtc/api/dtlsidentitystore.cc b/webrtc/api/dtlsidentitystore.cc
index bdccc10c1b03469a5995a047aae2198a83ba861b..d725ff4c4743feefe7571488f4cf007b1135998b 100644
--- a/webrtc/api/dtlsidentitystore.cc
+++ b/webrtc/api/dtlsidentitystore.cc
@@ -58,7 +58,7 @@ class DtlsIdentityStoreImpl::WorkerTask : public sigslot::has_slots<>,
// |signaling_thread_| and thus avoids having to use locks.
IdentityResultMessageData* msg = new IdentityResultMessageData(
new IdentityResult(key_type_, std::move(identity)));
- signaling_thread_->Post(this, MSG_GENERATE_IDENTITY_RESULT, msg);
+ signaling_thread_->Post(FROM_HERE, this, MSG_GENERATE_IDENTITY_RESULT, msg);
}
void OnMessage(rtc::Message* msg) override {
@@ -69,7 +69,7 @@ class DtlsIdentityStoreImpl::WorkerTask : public sigslot::has_slots<>,
// Must delete |this|, owned by msg->pdata, on the signaling thread to
// avoid races on disconnecting the signal.
- signaling_thread_->Post(this, MSG_DESTROY, msg->pdata);
+ signaling_thread_->Post(FROM_HERE, this, MSG_DESTROY, msg->pdata);
break;
case MSG_GENERATE_IDENTITY_RESULT:
RTC_DCHECK(signaling_thread_->IsCurrent());
@@ -163,7 +163,8 @@ void DtlsIdentityStoreImpl::GenerateIdentity(
IdentityResultMessageData* msg =
new IdentityResultMessageData(new IdentityResult(
key_type, std::move(request_info_[key_type].free_identity_)));
- signaling_thread_->Post(this, MSG_GENERATE_IDENTITY_RESULT, msg);
+ signaling_thread_->Post(FROM_HERE, this, MSG_GENERATE_IDENTITY_RESULT,
+ msg);
return;
}
@@ -182,7 +183,7 @@ void DtlsIdentityStoreImpl::GenerateIdentity(
// The WorkerTask is owned by the message data to make sure it will not be
// leaked even if the task does not get run.
WorkerTaskMessageData* msg = new WorkerTaskMessageData(task);
- worker_thread_->Post(task, MSG_GENERATE_IDENTITY, msg);
+ worker_thread_->Post(FROM_HERE, task, MSG_GENERATE_IDENTITY, msg);
}
void DtlsIdentityStoreImpl::OnIdentityGenerated(
« no previous file with comments | « webrtc/api/datachannel.cc ('k') | webrtc/api/dtmfsender.cc » ('j') | webrtc/base/location.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698