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

Unified Diff: content/child/blink_platform_impl.h

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a clone method to WebTaskRunner which lets us solve the lifetime issue. 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: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index 4ec165945e44cd1b3561898702a409248ae00b22..be9f778bf063b749c198c8aa703252077cf3c5a9 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -189,14 +189,16 @@ class CONTENT_EXPORT BlinkPlatformImpl
blink::WebString domKeyStringFromEnum(int dom_key) override;
int domKeyEnumFromString(const blink::WebString& key_string) override;
+ protected:
+ virtual scoped_refptr<base::SingleThreadTaskRunner>
+ LoadingTaskRunnerForCurrentThread();
+
private:
void InternalInit();
void UpdateWebThreadTLS(blink::WebThread* thread);
bool IsMainThread() const;
- scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread();
-
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
WebThemeEngineImpl native_theme_engine_;
WebFallbackThemeEngineImpl fallback_theme_engine_;

Powered by Google App Engine
This is Rietveld 408576698