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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 451 |
452 protected: | 452 protected: |
453 RenderThreadImpl( | 453 RenderThreadImpl( |
454 const InProcessChildThreadParams& params, | 454 const InProcessChildThreadParams& params, |
455 std::unique_ptr<scheduler::RendererScheduler> scheduler, | 455 std::unique_ptr<scheduler::RendererScheduler> scheduler, |
456 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 456 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
457 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop, | 457 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop, |
458 std::unique_ptr<scheduler::RendererScheduler> scheduler); | 458 std::unique_ptr<scheduler::RendererScheduler> scheduler); |
459 | 459 |
460 private: | 460 private: |
| 461 // IPC::Listener |
| 462 void OnChannelError() override; |
| 463 |
461 // ChildThread | 464 // ChildThread |
462 bool OnControlMessageReceived(const IPC::Message& msg) override; | 465 bool OnControlMessageReceived(const IPC::Message& msg) override; |
463 void OnProcessBackgrounded(bool backgrounded) override; | 466 void OnProcessBackgrounded(bool backgrounded) override; |
464 void RecordAction(const base::UserMetricsAction& action) override; | 467 void RecordAction(const base::UserMetricsAction& action) override; |
465 void RecordComputedAction(const std::string& action) override; | 468 void RecordComputedAction(const std::string& action) override; |
466 | 469 |
467 // GpuChannelHostFactory implementation: | 470 // GpuChannelHostFactory implementation: |
468 bool IsMainThread() override; | 471 bool IsMainThread() override; |
469 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 472 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
470 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 473 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 706 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
704 }; | 707 }; |
705 | 708 |
706 #if defined(COMPILER_MSVC) | 709 #if defined(COMPILER_MSVC) |
707 #pragma warning(pop) | 710 #pragma warning(pop) |
708 #endif | 711 #endif |
709 | 712 |
710 } // namespace content | 713 } // namespace content |
711 | 714 |
712 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 715 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |