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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 8a58c91e89651bb4d01648951fecbf7cc0206996..2f1c87368c4b63fa4228f9ca61132231d6dcbfad 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -27,6 +27,7 @@
#include "base/time/time.h"
#include "blink/public/resources/grit/blink_image_resources.h"
#include "blink/public/resources/grit/blink_resources.h"
+#include "components/scheduler/child/webthread_impl_for_worker_scheduler.h"
#include "content/app/resources/grit/content_resources.h"
#include "content/app/strings/grit/content_strings.h"
#include "content/child/bluetooth/web_bluetooth_impl.h"
@@ -40,7 +41,6 @@
#include "content/child/permissions/permission_dispatcher_thread_proxy.h"
#include "content/child/push_messaging/push_dispatcher.h"
#include "content/child/push_messaging/push_provider.h"
-#include "content/child/scheduler/webthread_impl_for_worker_scheduler.h"
#include "content/child/thread_safe_sender.h"
#include "content/child/web_discardable_memory_impl.h"
#include "content/child/web_url_loader_impl.h"
@@ -519,8 +519,8 @@ bool BlinkPlatformImpl::portAllowed(const blink::WebURL& url) const {
}
blink::WebThread* BlinkPlatformImpl::createThread(const char* name) {
- WebThreadImplForWorkerScheduler* thread =
- new WebThreadImplForWorkerScheduler(name);
+ scheduler::WebThreadImplForWorkerScheduler* thread =
+ new scheduler::WebThreadImplForWorkerScheduler(name);
thread->TaskRunner()->PostTask(
FROM_HERE, base::Bind(&BlinkPlatformImpl::UpdateWebThreadTLS,
base::Unretained(this), thread));

Powered by Google App Engine
This is Rietveld 408576698