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

Unified Diff: content/child/webthread_impl.h

Issue 869573005: Implement posting location tracking in WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward decl Created 5 years, 11 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') | content/child/webthread_impl.cc » ('J')
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 b63d384c08e7de5c2980140e7f06ab4583075899..481ff25cec68c7f532ef04c6363debb926e536d0 100644
--- a/content/child/webthread_impl.h
+++ b/content/child/webthread_impl.h
@@ -12,6 +12,10 @@
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebThread.h"
+namespace blink {
+class WebTraceLocation;
+}
+
namespace content {
class CONTENT_EXPORT WebThreadBase : public blink::WebThread {
@@ -39,6 +43,12 @@ class CONTENT_EXPORT WebThreadImpl : public WebThreadBase {
explicit WebThreadImpl(const char* name);
virtual ~WebThreadImpl();
+ virtual void postTask(const blink::WebTraceLocation& location, Task* task);
+ virtual void postDelayedTask(const blink::WebTraceLocation& location,
+ Task* task,
+ long long delay_ms);
+
+ // TODO(skyostil): Remove once blink has migrated.
virtual void postTask(Task* task);
virtual void postDelayedTask(Task* task, long long delay_ms);
@@ -60,8 +70,14 @@ class WebThreadImplForMessageLoop : public WebThreadBase {
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner);
CONTENT_EXPORT virtual ~WebThreadImplForMessageLoop();
- virtual void postTask(Task* task) override;
- virtual void postDelayedTask(Task* task, long long delay_ms) override;
+ virtual void postTask(const blink::WebTraceLocation& location, Task* task);
+ virtual void postDelayedTask(const blink::WebTraceLocation& location,
+ Task* task,
+ long long delay_ms);
+
+ // TODO(skyostil): Remove once blink has migrated.
+ virtual void postTask(Task* task);
+ virtual void postDelayedTask(Task* task, long long delay_ms);
virtual void enterRunLoop() override;
virtual void exitRunLoop() override;
« no previous file with comments | « no previous file | content/child/webthread_impl.cc » ('j') | content/child/webthread_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698