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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2553173003: Move WebMediaPlayer to frame loading queue. (Closed)
Patch Set: Expose task runners in WebLocalFrame Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index c120291d15c7cccaf88e0c059c0c63ff2bb5bdc8..597f1565f4c0c2a081312eb3e4a61ad2f8671538 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -182,6 +182,7 @@
#include "public/platform/WebDoubleSize.h"
#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebFloatRect.h"
+#include "public/platform/WebFrameScheduler.h"
#include "public/platform/WebLayer.h"
#include "public/platform/WebPoint.h"
#include "public/platform/WebRect.h"
@@ -2337,6 +2338,27 @@ void WebLocalFrameImpl::usageCountChromeLoadTimes(const WebString& metric) {
UseCounter::count(frame(), feature);
}
+base::SingleThreadTaskRunner* WebLocalFrameImpl::timerTaskRunner() {
+ return frame()
+ ->frameScheduler()
+ ->timerTaskRunner()
+ ->toSingleThreadTaskRunner();
+}
+
+base::SingleThreadTaskRunner* WebLocalFrameImpl::loadingTaskRunner() {
+ return frame()
+ ->frameScheduler()
+ ->loadingTaskRunner()
+ ->toSingleThreadTaskRunner();
+}
+
+base::SingleThreadTaskRunner* WebLocalFrameImpl::unthrottledTaskRunner() {
+ return frame()
+ ->frameScheduler()
+ ->unthrottledTaskRunner()
+ ->toSingleThreadTaskRunner();
+}
+
WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const {
return m_inputMethodController.get();
}
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698