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

Unified Diff: third_party/WebKit/Source/core/frame/FrameHost.cpp

Issue 1340343003: scheduler: Implement WebFrameScheduler and WebPageScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + fixed gn build. Created 5 years, 3 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/Source/core/frame/FrameHost.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameHost.cpp b/third_party/WebKit/Source/core/frame/FrameHost.cpp
index a7486844c22a68c576fbaba63d9c314bc50e5c00..273301786e2824d1b2873cc94373ea50c8a33360 100644
--- a/third_party/WebKit/Source/core/frame/FrameHost.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameHost.cpp
@@ -36,6 +36,9 @@
#include "core/frame/TopControls.h"
#include "core/inspector/ConsoleMessageStorage.h"
#include "core/page/Page.h"
+#include "public/platform/Platform.h"
+#include "public/platform/WebFrameHostScheduler.h"
+#include "public/platform/WebScheduler.h"
namespace blink {
@@ -51,6 +54,7 @@ FrameHost::FrameHost(Page& page)
, m_visualViewport(VisualViewport::create(*this))
, m_eventHandlerRegistry(adoptPtrWillBeNoop(new EventHandlerRegistry(*this)))
, m_consoleMessageStorage(ConsoleMessageStorage::create())
+ , m_frameHostScheduler(adoptPtr(Platform::current()->currentThread()->scheduler()->createFrameHostScheduler()))
, m_subframeCount(0)
{
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameHost.h ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698