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

Unified Diff: mojo/services/html_viewer/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 | « content/child/webthread_impl.cc ('k') | mojo/services/html_viewer/webthread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/webthread_impl.h
diff --git a/mojo/services/html_viewer/webthread_impl.h b/mojo/services/html_viewer/webthread_impl.h
index 3d22d860eb848aa1f9afe354ecf1b8ce6fa72865..93d7aeb3cce2f952245620a6dd72fe7a490bae21 100644
--- a/mojo/services/html_viewer/webthread_impl.h
+++ b/mojo/services/html_viewer/webthread_impl.h
@@ -21,6 +21,7 @@ class WebThreadBase : public blink::WebThread {
virtual void removeTaskObserver(TaskObserver* observer);
virtual bool isCurrentThread() const = 0;
+ virtual blink::PlatformThreadId threadId() const = 0;
protected:
WebThreadBase();
@@ -46,6 +47,7 @@ class WebThreadImpl : public WebThreadBase {
base::MessageLoop* message_loop() const { return thread_->message_loop(); }
virtual bool isCurrentThread() const;
+ virtual blink::PlatformThreadId threadId() const;
private:
scoped_ptr<base::Thread> thread_;
@@ -65,7 +67,10 @@ class WebThreadImplForMessageLoop : public WebThreadBase {
private:
virtual bool isCurrentThread() const;
+ virtual blink::PlatformThreadId threadId() const;
+
scoped_refptr<base::MessageLoopProxy> message_loop_;
+ blink::PlatformThreadId thread_id_;
};
} // namespace mojo
« no previous file with comments | « content/child/webthread_impl.cc ('k') | mojo/services/html_viewer/webthread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698