| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Returns a MessageLoopProxy instance corresponding to the message loop | 209 // Returns a MessageLoopProxy instance corresponding to the message loop |
| 210 // of the thread on which file operations should be run. Must be called | 210 // of the thread on which file operations should be run. Must be called |
| 211 // on the renderer's main thread. | 211 // on the renderer's main thread. |
| 212 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 212 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
| 213 | 213 |
| 214 // Causes the idle handler to skip sending idle notifications | 214 // Causes the idle handler to skip sending idle notifications |
| 215 // on the two next scheduled calls, so idle notifications are | 215 // on the two next scheduled calls, so idle notifications are |
| 216 // not sent for at least one notification delay. | 216 // not sent for at least one notification delay. |
| 217 void PostponeIdleNotification(); | 217 void PostponeIdleNotification(); |
| 218 | 218 |
| 219 protected: |
| 220 // Subclasses can provide their own WebKitPlatformSupport implementation by |
| 221 // overriding this method. |
| 222 virtual RendererWebKitPlatformSupportImpl* CreateWebKitPlatformSupport(); |
| 223 |
| 219 private: | 224 private: |
| 220 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 225 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 221 | 226 |
| 222 void Init(); | 227 void Init(); |
| 223 | 228 |
| 224 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); | 229 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); |
| 225 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 230 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
| 226 void OnCreateNewView(const ViewMsg_New_Params& params); | 231 void OnCreateNewView(const ViewMsg_New_Params& params); |
| 227 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 232 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
| 228 void OnPurgePluginListCache(bool reload_pages); | 233 void OnPurgePluginListCache(bool reload_pages); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 bool compositor_initialized_; | 296 bool compositor_initialized_; |
| 292 scoped_ptr<CompositorThread> compositor_thread_; | 297 scoped_ptr<CompositorThread> compositor_thread_; |
| 293 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; | 298 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; |
| 294 | 299 |
| 295 ObserverList<content::RenderProcessObserver> observers_; | 300 ObserverList<content::RenderProcessObserver> observers_; |
| 296 | 301 |
| 297 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 302 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 298 }; | 303 }; |
| 299 | 304 |
| 300 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 305 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |