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

Unified Diff: content/renderer/renderer_blink_platform_impl.h

Issue 637303003: content: Add task queue manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First stab at blink integration. Created 6 years, 2 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/renderer/renderer_blink_platform_impl.h
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
index 9d881bffbe0027d20161cac9aadab7e6c18f331d..f8f93cd6a5f4904bfe7975f0b287cae7e5daea40 100644
--- a/content/renderer/renderer_blink_platform_impl.h
+++ b/content/renderer/renderer_blink_platform_impl.h
@@ -44,6 +44,7 @@ class PlatformEventObserverBase;
class QuotaMessageFilter;
class RendererClipboardClient;
class RenderView;
+class TaskQueueManager;
class ThreadSafeSender;
class WebClipboardImpl;
class WebDatabaseObserverImpl;
@@ -58,6 +59,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
plugin_refresh_allowed_ = plugin_refresh_allowed;
}
// Platform methods:
+ virtual void callOnMainThread(void (*func)(void*), void* context);
alexclarke 2014/10/13 10:06:22 Personally I'm OK with a naked function pointer, b
Sami 2014/10/13 18:16:21 This is an existing function that's called from Bl
virtual blink::WebClipboard* clipboard();
virtual blink::WebMimeRegistry* mimeRegistry();
virtual blink::WebFileUtilities* fileUtilities();
@@ -181,6 +183,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
return web_database_observer_impl_.get();
}
+ TaskQueueManager* task_queue_manager() { return task_queue_manager_.get(); }
+
private:
bool CheckPreparsedJsCachingEnabled() const;
@@ -193,6 +197,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
// them to the registered listener.
void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type);
+ scoped_ptr<TaskQueueManager> task_queue_manager_;
+
scoped_ptr<RendererClipboardClient> clipboard_client_;
scoped_ptr<WebClipboardImpl> clipboard_;

Powered by Google App Engine
This is Rietveld 408576698