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 dcd437dbfebb4af71025117e0628436689f049fd..f62d915d7d3a4425b66a9c0782e31cb4005419ca 100644 |
--- a/content/renderer/renderer_blink_platform_impl.h |
+++ b/content/renderer/renderer_blink_platform_impl.h |
@@ -43,21 +43,24 @@ class DeviceOrientationEventPump; |
class PlatformEventObserverBase; |
class QuotaMessageFilter; |
class RendererClipboardClient; |
+class RendererScheduler; |
class RenderView; |
class ThreadSafeSender; |
class WebClipboardImpl; |
class WebDatabaseObserverImpl; |
class WebFileSystemImpl; |
+class WebSchedulerImpl; |
class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
public: |
- RendererBlinkPlatformImpl(); |
+ RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler); |
virtual ~RendererBlinkPlatformImpl(); |
void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
plugin_refresh_allowed_ = plugin_refresh_allowed; |
} |
// Platform methods: |
+ virtual void callOnMainThread(void (*func)(void*), void* context); |
virtual blink::WebClipboard* clipboard(); |
virtual blink::WebMimeRegistry* mimeRegistry(); |
virtual blink::WebFileUtilities* fileUtilities(); |
@@ -149,6 +152,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
blink::WebStorageQuotaCallbacks); |
virtual void vibrate(unsigned int milliseconds); |
virtual void cancelVibration(); |
+ virtual blink::WebScheduler* scheduler(); |
// Set the PlatformEventObserverBase in |platform_event_observers_| associated |
// with |type| to |observer|. If there was already an observer associated to |
@@ -197,6 +201,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
// them to the registered listener. |
void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
+ scoped_ptr<WebSchedulerImpl> web_scheduler_; |
+ |
scoped_ptr<RendererClipboardClient> clipboard_client_; |
scoped_ptr<WebClipboardImpl> clipboard_; |
@@ -228,6 +234,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; |
+ scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; |
scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
scoped_refptr<ThreadSafeSender> thread_safe_sender_; |