diff options
author | alexclarke <alexclarke@chromium.org> | 2015-04-14 04:34:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-14 11:35:20 +0000 |
commit | b37d4c285dc2f505b006187d2651f6db96d9a42c (patch) | |
tree | 7be5d140368c2558d634c9bfcf873fb2c83ec23c /content/child/threaded_data_provider.h | |
parent | b3ee51643703386144a3e6eca2558e72077d5fae (diff) | |
download | chromium_src-b37d4c285dc2f505b006187d2651f6db96d9a42c.zip chromium_src-b37d4c285dc2f505b006187d2651f6db96d9a42c.tar.gz chromium_src-b37d4c285dc2f505b006187d2651f6db96d9a42c.tar.bz2 |
Add a WorkerScheduler and a WebThreadImplForWorker
Adds a simple WorkerScheduler which supports Default and Idle Tasks (via
Long Idle Periods). A follow up Blink patch will refactor
WorkerThread.cpp to use these Idle Tasks.
A WorkerSceduler is a pre-requisite for refactoring away the Blink
Timer Heap as described in:
https://docs.google.com/document/d/163ow-1wjd6L0rAN3V_U6t12eqVkq4mXDDjVaA4OuvCA/edit?usp=sharing
BUG=463143
Committed: https://crrev.com/510ed9c42029e1b2924ac05082c958591f029624
Cr-Commit-Position: refs/heads/master@{#324847}
Review URL: https://codereview.chromium.org/1033643004
Cr-Commit-Position: refs/heads/master@{#325026}
Diffstat (limited to 'content/child/threaded_data_provider.h')
-rw-r--r-- | content/child/threaded_data_provider.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/child/threaded_data_provider.h b/content/child/threaded_data_provider.h index 9ac2ac2..effb4f9 100644 --- a/content/child/threaded_data_provider.h +++ b/content/child/threaded_data_provider.h @@ -26,7 +26,7 @@ class SyncChannel; namespace content { class ResourceDispatcher; -class WebThreadImpl; +class WebThreadImplForWorkerScheduler; class ThreadedDataProvider { public: @@ -78,7 +78,7 @@ class ThreadedDataProvider { int shm_size_; scoped_ptr<base::WeakPtrFactory<ThreadedDataProvider> > background_thread_weak_factory_; - WebThreadImpl& background_thread_; + WebThreadImplForWorkerScheduler& background_thread_; IPC::SyncChannel* ipc_channel_; blink::WebThreadedDataReceiver* threaded_data_receiver_; bool resource_filter_active_; |