Chromium Code Reviews| 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..58d47e4948ca1a1147fa325774cc1b0784457c72 100644 |
| --- a/content/renderer/renderer_blink_platform_impl.h |
| +++ b/content/renderer/renderer_blink_platform_impl.h |
| @@ -43,11 +43,13 @@ 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: |
| @@ -58,6 +60,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
| plugin_refresh_allowed_ = plugin_refresh_allowed; |
| } |
| // Platform methods: |
| + virtual void callOnMainThread(void (*func)(void*), void* context); |
|
eseidel
2014/10/21 16:13:04
I guess we don't have a Closure typedef (for the v
|
| virtual blink::WebClipboard* clipboard(); |
| virtual blink::WebMimeRegistry* mimeRegistry(); |
| virtual blink::WebFileUtilities* fileUtilities(); |
| @@ -145,6 +148,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 |
| @@ -181,6 +185,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
| return web_database_observer_impl_.get(); |
| } |
| + RendererScheduler* renderer_scheduler() { return renderer_scheduler_.get(); } |
| + |
| private: |
| bool CheckPreparsedJsCachingEnabled() const; |
| @@ -193,6 +199,9 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
| // them to the registered listener. |
| void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
| + scoped_ptr<RendererScheduler> renderer_scheduler_; |
| + scoped_ptr<WebSchedulerImpl> web_scheduler_; |
| + |
| scoped_ptr<RendererClipboardClient> clipboard_client_; |
| scoped_ptr<WebClipboardImpl> clipboard_; |