Index: content/child/webthread_impl.cc |
diff --git a/content/child/webthread_impl.cc b/content/child/webthread_impl.cc |
index d53d06e061036ba3a2c8fb99c5bcee800471eb24..1f3097a268214841e360392e51893009dd8b06d3 100644 |
--- a/content/child/webthread_impl.cc |
+++ b/content/child/webthread_impl.cc |
@@ -88,13 +88,18 @@ bool WebThreadImpl::isCurrentThread() const { |
return thread_->thread_id() == base::PlatformThread::CurrentId(); |
} |
+blink::PlatformThreadId WebThreadImpl::threadId() const { |
+ return thread_->thread_id(); |
+} |
+ |
WebThreadImpl::~WebThreadImpl() { |
thread_->Stop(); |
} |
WebThreadImplForMessageLoop::WebThreadImplForMessageLoop( |
base::MessageLoopProxy* message_loop) |
- : message_loop_(message_loop) {} |
+ : message_loop_(message_loop), |
+ thread_id_(base::PlatformThread::CurrentId()) {} |
void WebThreadImplForMessageLoop::postTask(Task* task) { |
message_loop_->PostTask( |
@@ -126,6 +131,10 @@ bool WebThreadImplForMessageLoop::isCurrentThread() const { |
return message_loop_->BelongsToCurrentThread(); |
} |
+blink::PlatformThreadId WebThreadImplForMessageLoop::threadId() const { |
+ return thread_id_; |
+} |
+ |
WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() {} |
} // namespace content |