| 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_
|
|
|