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