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 68% |
rename from components/scheduler/child/webthread_base.h |
rename to third_party/WebKit/public/platform/scheduler/child/webthread_base.h |
index 0075d5f39f24742e1582ad47b22a9d224a76c19c..92f539cc833b70c4df2b2228eaee0ca1ec79ac22 100644 |
--- a/components/scheduler/child/webthread_base.h |
+++ b/third_party/WebKit/public/platform/scheduler/child/webthread_base.h |
@@ -2,34 +2,35 @@ |
// 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 "public/platform/WebCommon.h" |
+#include "public/platform/WebThread.h" |
namespace blink { |
class WebTraceLocation; |
} |
+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; |
@@ -54,7 +55,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: |
@@ -63,5 +64,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_ |