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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 virtual void CreateImage( | 394 virtual void CreateImage( |
395 gfx::PluginWindowHandle window, | 395 gfx::PluginWindowHandle window, |
396 int32 image_id, | 396 int32 image_id, |
397 const CreateImageCallback& callback) OVERRIDE; | 397 const CreateImageCallback& callback) OVERRIDE; |
398 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; | 398 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; |
399 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 399 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
400 size_t width, | 400 size_t width, |
401 size_t height, | 401 size_t height, |
402 unsigned internalformat) OVERRIDE; | 402 unsigned internalformat) OVERRIDE; |
403 | 403 |
| 404 // mojo::ShellClient implementation: |
| 405 virtual void AcceptConnection( |
| 406 const mojo::String& service_name, |
| 407 mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE; |
| 408 |
404 void Init(); | 409 void Init(); |
405 | 410 |
406 void OnSetZoomLevelForCurrentURL(const std::string& scheme, | 411 void OnSetZoomLevelForCurrentURL(const std::string& scheme, |
407 const std::string& host, | 412 const std::string& host, |
408 double zoom_level); | 413 double zoom_level); |
409 void OnCreateNewView(const ViewMsg_New_Params& params); | 414 void OnCreateNewView(const ViewMsg_New_Params& params); |
410 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 415 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
411 void OnPurgePluginListCache(bool reload_pages); | 416 void OnPurgePluginListCache(bool reload_pages); |
412 void OnNetworkStateChanged(bool online); | 417 void OnNetworkStateChanged(bool online); |
413 void OnGetAccessibilityTree(); | 418 void OnGetAccessibilityTree(); |
(...skipping 11 matching lines...) Expand all Loading... |
425 blink::ScrollerStyle preferred_scroller_style, | 430 blink::ScrollerStyle preferred_scroller_style, |
426 bool redraw); | 431 bool redraw); |
427 #endif | 432 #endif |
428 void OnCreateNewSharedWorker( | 433 void OnCreateNewSharedWorker( |
429 const WorkerProcessMsg_CreateWorker_Params& params); | 434 const WorkerProcessMsg_CreateWorker_Params& params); |
430 | 435 |
431 void IdleHandlerInForegroundTab(); | 436 void IdleHandlerInForegroundTab(); |
432 | 437 |
433 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); | 438 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); |
434 | 439 |
| 440 MojoApplication mojo_application_; |
| 441 |
435 // These objects live solely on the render thread. | 442 // These objects live solely on the render thread. |
436 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 443 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
437 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 444 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
438 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 445 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
439 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; | 446 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; |
440 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; | 447 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; |
441 | 448 |
442 // Used on the render thread and deleted by WebKit at shutdown. | 449 // Used on the render thread and deleted by WebKit at shutdown. |
443 blink::WebMediaStreamCenter* media_stream_center_; | 450 blink::WebMediaStreamCenter* media_stream_center_; |
444 | 451 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 bool is_low_res_tiling_enabled_; | 548 bool is_low_res_tiling_enabled_; |
542 bool is_lcd_text_enabled_; | 549 bool is_lcd_text_enabled_; |
543 bool is_map_image_enabled_; | 550 bool is_map_image_enabled_; |
544 | 551 |
545 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 552 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
546 }; | 553 }; |
547 | 554 |
548 } // namespace content | 555 } // namespace content |
549 | 556 |
550 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 557 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |