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

Unified Diff: sky/engine/public/platform/WebThread.h

Issue 673033002: Remove WebThread (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/public/platform/Platform.h ('k') | sky/engine/testing/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/platform/WebThread.h
diff --git a/sky/engine/public/platform/WebThread.h b/sky/engine/public/platform/WebThread.h
index 60e4731048c75607496dbb4195199fff617afe0d..2095985e23688db9a2a898f3aba16794d1eb1d2b 100644
--- a/sky/engine/public/platform/WebThread.h
+++ b/sky/engine/public/platform/WebThread.h
@@ -44,36 +44,6 @@ public:
virtual ~Task() { }
virtual void run() = 0;
};
-
- class BLINK_PLATFORM_EXPORT TaskObserver {
- public:
- virtual ~TaskObserver() { }
- virtual void willProcessTask() = 0;
- virtual void didProcessTask() = 0;
- };
-
- // postTask() and postDelayedTask() take ownership of the passed Task
- // object. It is safe to invoke postTask() and postDelayedTask() from any
- // thread.
- virtual void postTask(Task*) = 0;
- virtual void postDelayedTask(Task*, long long delayMs) = 0;
-
- virtual bool isCurrentThread() const = 0;
- virtual PlatformThreadId threadId() const { return 0; }
-
- virtual void addTaskObserver(TaskObserver*) { }
- virtual void removeTaskObserver(TaskObserver*) { }
-
- // enterRunLoop() processes tasks posted to this WebThread. This call does not return until some task calls exitRunLoop().
- // WebThread does not support nesting, meaning that once the run loop is entered for a given WebThread it is not valid to
- // call enterRunLoop() again.
- virtual void enterRunLoop() = 0;
-
- // exitRunLoop() runs tasks until there are no tasks available to run, then returns control to the caller of enterRunLoop().
- // Must be called when the WebThread is running.
- virtual void exitRunLoop() = 0;
-
- virtual ~WebThread() { }
};
} // namespace blink
« no previous file with comments | « sky/engine/public/platform/Platform.h ('k') | sky/engine/testing/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698