Index: third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h |
diff --git a/components/scheduler/renderer/renderer_scheduler.h b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h |
similarity index 86% |
rename from components/scheduler/renderer/renderer_scheduler.h |
rename to third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h |
index 33d75ab25b317cdfb74e206dd96a278552b61687..2a865e880158a249099df7e66d6f0d4474ae05f1 100644 |
--- a/components/scheduler/renderer/renderer_scheduler.h |
+++ b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h |
@@ -2,19 +2,19 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
-#define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
+#ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
+#define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
#include <memory> |
#include "base/macros.h" |
#include "base/message_loop/message_loop.h" |
-#include "components/scheduler/child/child_scheduler.h" |
-#include "components/scheduler/child/single_thread_idle_task_runner.h" |
-#include "components/scheduler/renderer/render_widget_scheduling_state.h" |
-#include "components/scheduler/scheduler_export.h" |
-#include "third_party/WebKit/public/platform/WebScheduler.h" |
-#include "third_party/WebKit/public/web/WebInputEvent.h" |
+#include "public/platform/scheduler/child/child_scheduler.h" |
+#include "public/platform/scheduler/child/single_thread_idle_task_runner.h" |
+#include "public/platform/scheduler/renderer/render_widget_scheduling_state.h" |
+#include "public/platform/WebCommon.h" |
+#include "public/platform/WebInputEvent.h" |
+#include "public/platform/WebScheduler.h" |
#include "v8/include/v8.h" |
namespace base { |
@@ -32,13 +32,14 @@ class WebLocalFrame; |
class WebThread; |
} |
+namespace blink { |
namespace scheduler { |
class RenderWidgetSchedulingState; |
-class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler { |
+class BLINK_PLATFORM_EXPORT RendererScheduler : public ChildScheduler { |
public: |
- class SCHEDULER_EXPORT RAILModeObserver { |
+ class BLINK_PLATFORM_EXPORT RAILModeObserver { |
public: |
virtual ~RAILModeObserver(); |
virtual void OnRAILModeChanged(v8::RAILMode rail_mode) = 0; |
@@ -51,7 +52,7 @@ class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler { |
virtual scoped_refptr<TaskQueue> CompositorTaskRunner() = 0; |
// Creates a WebThread implementation for the renderer main thread. |
- virtual std::unique_ptr<blink::WebThread> CreateMainThread() = 0; |
+ virtual std::unique_ptr<WebThread> CreateMainThread() = 0; |
// Returns the loading task runner. This queue is intended for tasks related |
// to resource dispatch, foreground HTML parsing, etc... |
@@ -102,13 +103,13 @@ class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler { |
// EVENT_FORWARDED_TO_MAIN_THREAD will be followed by a corresponding call |
// to DidHandleInputEventOnMainThread. |
virtual void DidHandleInputEventOnCompositorThread( |
- const blink::WebInputEvent& web_input_event, |
+ const WebInputEvent& web_input_event, |
InputEventState event_state) = 0; |
// Tells the scheduler that the system processed an input event. Must be |
// called from the main thread. |
virtual void DidHandleInputEventOnMainThread( |
- const blink::WebInputEvent& web_input_event) = 0; |
+ const WebInputEvent& web_input_event) = 0; |
// Tells the scheduler that the system is displaying an input animation (e.g. |
// a fling). Called by the compositor (impl) thread. |
@@ -135,13 +136,12 @@ class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler { |
// navigation tasks are pending, the scheduler will ensure that loading tasks |
// are not blocked even if they are expensive. Must be called on the main |
// thread. |
- virtual void AddPendingNavigation( |
- blink::WebScheduler::NavigatingFrameType type) = 0; |
+ virtual void AddPendingNavigation(WebScheduler::NavigatingFrameType type) = 0; |
// Tells the scheduler that a navigation task is no longer pending. |
// Must be called on the main thread. |
virtual void RemovePendingNavigation( |
- blink::WebScheduler::NavigatingFrameType type) = 0; |
+ WebScheduler::NavigatingFrameType type) = 0; |
// Tells the scheduler that a navigation has started. The scheduler will |
// prioritize loading tasks for a short duration afterwards. |
@@ -184,5 +184,6 @@ class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler { |
}; |
} // namespace scheduler |
+} // namespace blink |
-#endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
+#endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |