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

Unified Diff: third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
diff --git a/components/scheduler/child/webthread_impl_for_worker_scheduler.h b/third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
similarity index 76%
rename from components/scheduler/child/webthread_impl_for_worker_scheduler.h
rename to third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
index e2e3b3c52dca02fe5834294bc5c922a3b5641587..4a8d687a5574f65abdab5c864ca451b085007d0c 100644
--- a/components/scheduler/child/webthread_impl_for_worker_scheduler.h
+++ b/third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_IMPL_FOR_WORKER_SCHEDULER_H_
-#define COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_IMPL_FOR_WORKER_SCHEDULER_H_
+#ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_WEBTHREAD_IMPL_FOR_WORKER_SCHEDULER_H_
+#define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_WEBTHREAD_IMPL_FOR_WORKER_SCHEDULER_H_
#include "base/threading/thread.h"
-#include "components/scheduler/base/task_queue_manager.h"
-#include "components/scheduler/child/webthread_base.h"
+#include "public/platform/scheduler/child/webthread_base.h"
namespace base {
class WaitableEvent;
@@ -17,6 +16,7 @@ namespace blink {
class WebScheduler;
};
+namespace blink {
namespace scheduler {
class SchedulerTqmDelegate;
class SingleThreadIdleTaskRunner;
@@ -25,7 +25,7 @@ class WebSchedulerImpl;
class WebTaskRunnerImpl;
class WorkerScheduler;
-class SCHEDULER_EXPORT WebThreadImplForWorkerScheduler
+class BLINK_PLATFORM_EXPORT WebThreadImplForWorkerScheduler
: public WebThreadBase,
public base::MessageLoop::DestructionObserver {
public:
@@ -36,10 +36,10 @@ class SCHEDULER_EXPORT WebThreadImplForWorkerScheduler
void Init();
- // blink::WebThread implementation.
- blink::WebScheduler* scheduler() const override;
- blink::PlatformThreadId threadId() const override;
- blink::WebTaskRunner* getWebTaskRunner() override;
+ // WebThread implementation.
+ WebScheduler* scheduler() const override;
+ PlatformThreadId threadId() const override;
+ WebTaskRunner* getWebTaskRunner() override;
// WebThreadBase implementation.
base::SingleThreadTaskRunner* GetTaskRunner() const override;
@@ -73,5 +73,6 @@ class SCHEDULER_EXPORT WebThreadImplForWorkerScheduler
};
} // namespace scheduler
+} // namespace blink
-#endif // COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_IMPL_FOR_WORKER_SCHEDULER_H_
+#endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_WEBTHREAD_IMPL_FOR_WORKER_SCHEDULER_H_

Powered by Google App Engine
This is Rietveld 408576698