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

Unified Diff: public/platform/WebThread.h

Issue 400153002: Change WokerThread to use a blink::WebThread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use blink-side postDelayedTask instead of chromium Timer. Created 6 years, 5 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 | « public/platform/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebThread.h
diff --git a/public/platform/WebThread.h b/public/platform/WebThread.h
index 6bee10fbfebd929305b7c94031e4bf87e545f79b..f1a47465730fe24cae3ffcdeb55a8a2151a09577 100644
--- a/public/platform/WebThread.h
+++ b/public/platform/WebThread.h
@@ -68,6 +68,12 @@ public:
// Must be called when the WebThread is running.
virtual void exitRunLoop() = 0;
+ // Delayed work is driven by a shared timer.
darin (slow to review) 2014/07/29 19:28:20 The intent was to remove these functions, right?
+ typedef void (*SharedTimerFunction)();
+ virtual void setSharedTimerFiredFunction(SharedTimerFunction) = 0;
+ virtual void setSharedTimerFireInterval(double) = 0;
+ virtual void stopSharedTimer() = 0;
+
virtual ~WebThread() { }
};
« no previous file with comments | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698