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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // Retrieve current gamepad data. | 366 // Retrieve current gamepad data. |
367 void SampleGamepads(blink::WebGamepads* data); | 367 void SampleGamepads(blink::WebGamepads* data); |
368 | 368 |
369 // Called by a RenderWidget when it is created or destroyed. This | 369 // Called by a RenderWidget when it is created or destroyed. This |
370 // allows the process to know when there are no visible widgets. | 370 // allows the process to know when there are no visible widgets. |
371 void WidgetCreated(); | 371 void WidgetCreated(); |
372 void WidgetDestroyed(); | 372 void WidgetDestroyed(); |
373 void WidgetHidden(); | 373 void WidgetHidden(); |
374 void WidgetRestored(); | 374 void WidgetRestored(); |
375 | 375 |
376 void AddSharedWorkerRoute(int32 routing_id, IPC::Listener* listener); | 376 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); |
377 void RemoveSharedWorkerRoute(int32 routing_id); | 377 void RemoveEmbeddedWorkerRoute(int32 routing_id); |
378 | 378 |
379 private: | 379 private: |
380 // ChildThread | 380 // ChildThread |
381 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 381 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
382 | 382 |
383 // GpuChannelHostFactory implementation: | 383 // GpuChannelHostFactory implementation: |
384 virtual bool IsMainThread() OVERRIDE; | 384 virtual bool IsMainThread() OVERRIDE; |
385 virtual base::MessageLoop* GetMainLoop() OVERRIDE; | 385 virtual base::MessageLoop* GetMainLoop() OVERRIDE; |
386 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; | 386 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; |
387 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( | 387 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 bool is_low_res_tiling_enabled_; | 544 bool is_low_res_tiling_enabled_; |
545 bool is_lcd_text_enabled_; | 545 bool is_lcd_text_enabled_; |
546 bool is_map_image_enabled_; | 546 bool is_map_image_enabled_; |
547 | 547 |
548 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 548 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
549 }; | 549 }; |
550 | 550 |
551 } // namespace content | 551 } // namespace content |
552 | 552 |
553 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 553 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |