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

Unified Diff: third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 8 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/renderer/renderer_scheduler.h
diff --git a/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
index 4ed25a07b2384f4126593c88e0a1eee8f5b7b7aa..0f0a7d8f4b0ec4cbf3c6d1288436adfda5c303e8 100644
--- a/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
+++ b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
@@ -11,9 +11,7 @@
#include "base/message_loop/message_loop.h"
#include "base/threading/thread.h"
#include "public/platform/WebCommon.h"
-#include "public/platform/WebInputEvent.h"
#include "public/platform/WebInputEventResult.h"
-#include "public/platform/WebScheduler.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"
@@ -31,6 +29,7 @@ struct BeginFrameArgs;
namespace blink {
class WebThread;
+class WebInputEvent;
}
namespace blink {
@@ -130,16 +129,17 @@ class BLINK_PLATFORM_EXPORT RendererScheduler : public ChildScheduler {
// backgrounded.
virtual void ResumeRenderer() = 0;
+ enum class NavigatingFrameType { kMainFrame, kChildFrame };
+
// Tells the scheduler that a navigation task is pending. While any main-frame
// 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(WebScheduler::NavigatingFrameType type) = 0;
+ virtual void AddPendingNavigation(NavigatingFrameType type) = 0;
// Tells the scheduler that a navigation task is no longer pending.
// Must be called on the main thread.
- virtual void RemovePendingNavigation(
- WebScheduler::NavigatingFrameType type) = 0;
+ virtual void RemovePendingNavigation(NavigatingFrameType type) = 0;
// Tells the scheduler that a navigation has started. The scheduler will
// prioritize loading tasks for a short duration afterwards.

Powered by Google App Engine
This is Rietveld 408576698