| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // Retrieve current gamepad data. | 361 // Retrieve current gamepad data. |
| 362 void SampleGamepads(blink::WebGamepads* data); | 362 void SampleGamepads(blink::WebGamepads* data); |
| 363 | 363 |
| 364 // Called by a RenderWidget when it is created or destroyed. This | 364 // Called by a RenderWidget when it is created or destroyed. This |
| 365 // allows the process to know when there are no visible widgets. | 365 // allows the process to know when there are no visible widgets. |
| 366 void WidgetCreated(); | 366 void WidgetCreated(); |
| 367 void WidgetDestroyed(); | 367 void WidgetDestroyed(); |
| 368 void WidgetHidden(); | 368 void WidgetHidden(); |
| 369 void WidgetRestored(); | 369 void WidgetRestored(); |
| 370 | 370 |
| 371 void AddSharedWorkerRoute(int32 routing_id, IPC::Listener* listener); |
| 372 void RemoveSharedWorkerRoute(int32 routing_id); |
| 373 |
| 371 private: | 374 private: |
| 372 // ChildThread | 375 // ChildThread |
| 373 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 376 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 374 | 377 |
| 375 // GpuChannelHostFactory implementation: | 378 // GpuChannelHostFactory implementation: |
| 376 virtual bool IsMainThread() OVERRIDE; | 379 virtual bool IsMainThread() OVERRIDE; |
| 377 virtual base::MessageLoop* GetMainLoop() OVERRIDE; | 380 virtual base::MessageLoop* GetMainLoop() OVERRIDE; |
| 378 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; | 381 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; |
| 379 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( | 382 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( |
| 380 size_t size) OVERRIDE; | 383 size_t size) OVERRIDE; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 bool is_impl_side_painting_enabled_; | 532 bool is_impl_side_painting_enabled_; |
| 530 bool is_lcd_text_enabled_; | 533 bool is_lcd_text_enabled_; |
| 531 bool is_map_image_enabled_; | 534 bool is_map_image_enabled_; |
| 532 | 535 |
| 533 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 536 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 534 }; | 537 }; |
| 535 | 538 |
| 536 } // namespace content | 539 } // namespace content |
| 537 | 540 |
| 538 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 541 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |