Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / mojo / services / html_viewer / webthread_impl.cc
index ee81537..ae108e4 100644 (file)
@@ -88,6 +88,10 @@ bool WebThreadImpl::isCurrentThread() const {
   return thread_->thread_id() == base::PlatformThread::CurrentId();
 }
 
+blink::PlatformThreadId WebThreadImpl::threadId() const {
+  return thread_->thread_id();
+}
+
 WebThreadImpl::~WebThreadImpl() {
   thread_->Stop();
 }
@@ -126,6 +130,10 @@ bool WebThreadImplForMessageLoop::isCurrentThread() const {
   return message_loop_->BelongsToCurrentThread();
 }
 
+blink::PlatformThreadId WebThreadImplForMessageLoop::threadId() const {
+  return thread_id_;
+}
+
 WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() {}
 
 }  // namespace mojo