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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

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.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index a650b6fdd511425e6de5ed50782712bd0fdb9a69..a6dde3392cbe5b8a92c421cd9e0039f87d35108b 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -12,6 +12,10 @@
#include "public/platform/WebCachePolicy.h"
#include "public/platform/WebURLError.h"
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace blink {
class WebAutofillClient;
@@ -437,6 +441,14 @@ class WebLocalFrame : public WebFrame {
// This will be removed following the deprecation.
virtual void usageCountChromeLoadTimes(const WebString& metric) = 0;
+ // Task queues --------------------------------------------------------------
+
+ // Returns frame-specific task runner to run tasks of this type on.
+ // They have the same lifetime as the frame.
+ virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0;
+ virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0;
+ virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0;
+
protected:
explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698