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

Unified Diff: content/child/webthread_impl.h

Issue 515243002: Expose platform thread id on blink::WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | content/child/webthread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webthread_impl.h
diff --git a/content/child/webthread_impl.h b/content/child/webthread_impl.h
index 4c81b2579d6806fc2f2d601682ed2446a095a056..7c074db5e0dce406a8a8f933b0220083ccfd0d11 100644
--- a/content/child/webthread_impl.h
+++ b/content/child/webthread_impl.h
@@ -22,6 +22,7 @@ class CONTENT_EXPORT WebThreadBase : public blink::WebThread {
virtual void removeTaskObserver(TaskObserver* observer);
virtual bool isCurrentThread() const = 0;
+ virtual blink::PlatformThreadId threadId() const = 0;
protected:
WebThreadBase();
@@ -47,6 +48,7 @@ class CONTENT_EXPORT WebThreadImpl : public WebThreadBase {
base::MessageLoop* message_loop() const { return thread_->message_loop(); }
virtual bool isCurrentThread() const OVERRIDE;
+ virtual blink::PlatformThreadId threadId() const OVERRIDE;
private:
scoped_ptr<base::Thread> thread_;
@@ -66,7 +68,10 @@ class WebThreadImplForMessageLoop : public WebThreadBase {
private:
virtual bool isCurrentThread() const OVERRIDE;
+ virtual blink::PlatformThreadId threadId() const OVERRIDE;
+
scoped_refptr<base::MessageLoopProxy> message_loop_;
+ blink::PlatformThreadId thread_id_;
};
} // namespace content
« no previous file with comments | « no previous file | content/child/webthread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698