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

Unified Diff: third_party/WebKit/public/platform/scheduler/child/webthread_base.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_base.h
diff --git a/components/scheduler/child/webthread_base.h b/third_party/WebKit/public/platform/scheduler/child/webthread_base.h
similarity index 66%
rename from components/scheduler/child/webthread_base.h
rename to third_party/WebKit/public/platform/scheduler/child/webthread_base.h
index 0546cd9e6984b1c6962f201198cf7f3a85c96d78..6bfddec80336f03badd23dc4c801e033027a304c 100644
--- a/components/scheduler/child/webthread_base.h
+++ b/third_party/WebKit/public/platform/scheduler/child/webthread_base.h
@@ -2,31 +2,32 @@
// 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_BASE_H_
-#define COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_
+#ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_WEBTHREAD_BASE_H_
+#define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_WEBTHREAD_BASE_H_
#include <map>
#include <memory>
#include "base/threading/thread.h"
-#include "components/scheduler/scheduler_export.h"
-#include "third_party/WebKit/public/platform/WebThread.h"
-#include "third_party/WebKit/public/platform/WebTraceLocation.h"
+#include "public/platform/WebCommon.h"
+#include "public/platform/WebThread.h"
+#include "public/platform/WebTraceLocation.h"
+namespace blink {
namespace scheduler {
class SingleThreadIdleTaskRunner;
-class SCHEDULER_EXPORT WebThreadBase : public blink::WebThread {
+class BLINK_PLATFORM_EXPORT WebThreadBase : public WebThread {
public:
~WebThreadBase() override;
- // blink::WebThread implementation.
+ // WebThread implementation.
bool isCurrentThread() const override;
- blink::PlatformThreadId threadId() const override = 0;
+ PlatformThreadId threadId() const override = 0;
- virtual void postIdleTask(const blink::WebTraceLocation& location,
+ virtual void postIdleTask(const WebTraceLocation& location,
IdleTask* idle_task);
- virtual void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location,
+ virtual void postIdleTaskAfterWakeup(const WebTraceLocation& location,
IdleTask* idle_task);
void addTaskObserver(TaskObserver* observer) override;
@@ -51,7 +52,7 @@ class SCHEDULER_EXPORT WebThreadBase : public blink::WebThread {
base::MessageLoop::TaskObserver* observer);
static void RunWebThreadIdleTask(
- std::unique_ptr<blink::WebThread::IdleTask> idle_task,
+ std::unique_ptr<WebThread::IdleTask> idle_task,
base::TimeTicks deadline);
private:
@@ -60,5 +61,6 @@ class SCHEDULER_EXPORT WebThreadBase : public blink::WebThread {
};
} // namespace scheduler
+} // namespace blink
-#endif // COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_
+#endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_WEBTHREAD_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698