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

Unified Diff: content/public/renderer/render_frame.h

Issue 2643633003: Expose different task runner in RenderFrame for convenience (Closed)
Patch Set: Add comment Created 3 years, 11 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
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/render_frame.h
diff --git a/content/public/renderer/render_frame.h b/content/public/renderer/render_frame.h
index b0211bf64e365cb7b4a7e9eab0bdfbc317ef89a3..bccf9041f7d302d78b72ce928d3b6d84b2edc36a 100644
--- a/content/public/renderer/render_frame.h
+++ b/content/public/renderer/render_frame.h
@@ -20,6 +20,10 @@
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/web/WebNavigationPolicy.h"
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace blink {
class WebFrame;
class WebLocalFrame;
@@ -244,6 +248,12 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener,
// requests navigation until the browser responds with the result.
virtual bool IsBrowserSideNavigationPending() = 0;
+ // Renderer scheduler frame-specific task queues handles.
+ // See third_party/WebKit/Source/platform/WebFrameScheduler.h for details.
+ virtual base::SingleThreadTaskRunner* GetTimerTaskRunner() = 0;
+ virtual base::SingleThreadTaskRunner* GetLoadingTaskRunner() = 0;
+ virtual base::SingleThreadTaskRunner* GetUnthrottledTaskRunner() = 0;
+
protected:
~RenderFrame() override {}
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698