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

Unified Diff: content/child/webthread_impl.h

Issue 922733002: scheduler: Implement task observers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 ba2888f9bc70b007789d3f8ce022234ec45c3f33..576e6a4a1065217b0a3b675d5e6295c846ffbe21 100644
--- a/content/child/webthread_impl.h
+++ b/content/child/webthread_impl.h
@@ -29,11 +29,18 @@ class CONTENT_EXPORT WebThreadBase : public blink::WebThread {
virtual blink::PlatformThreadId threadId() const = 0;
protected:
+ class TaskObserverAdapter;
+
WebThreadBase();
- private:
- class TaskObserverAdapter;
+ virtual void AddTaskObserverInternal(
+ base::MessageLoop::TaskObserver* observer);
+ virtual void RemoveTaskObserverInternal(
+ base::MessageLoop::TaskObserver* observer);
+
+ static void RunWebThreadTask(scoped_ptr<blink::WebThread::Task> task);
+ private:
typedef std::map<TaskObserver*, TaskObserverAdapter*> TaskObserverMap;
TaskObserverMap task_observer_map_;
};
« 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