| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 const InProcessChildThreadParams& params, | 461 const InProcessChildThreadParams& params, |
| 462 std::unique_ptr<scheduler::RendererScheduler> scheduler, | 462 std::unique_ptr<scheduler::RendererScheduler> scheduler, |
| 463 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 463 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
| 464 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop, | 464 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop, |
| 465 std::unique_ptr<scheduler::RendererScheduler> scheduler); | 465 std::unique_ptr<scheduler::RendererScheduler> scheduler); |
| 466 | 466 |
| 467 private: | 467 private: |
| 468 // ChildThread | 468 // ChildThread |
| 469 bool OnControlMessageReceived(const IPC::Message& msg) override; | 469 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 470 void OnProcessBackgrounded(bool backgrounded) override; | 470 void OnProcessBackgrounded(bool backgrounded) override; |
| 471 void OnProcessSuspend() override; |
| 471 void RecordAction(const base::UserMetricsAction& action) override; | 472 void RecordAction(const base::UserMetricsAction& action) override; |
| 472 void RecordComputedAction(const std::string& action) override; | 473 void RecordComputedAction(const std::string& action) override; |
| 473 | 474 |
| 474 // GpuChannelHostFactory implementation: | 475 // GpuChannelHostFactory implementation: |
| 475 bool IsMainThread() override; | 476 bool IsMainThread() override; |
| 476 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 477 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
| 477 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 478 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
| 478 size_t size) override; | 479 size_t size) override; |
| 479 | 480 |
| 480 void Init(scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 481 void Init(scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 711 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 711 }; | 712 }; |
| 712 | 713 |
| 713 #if defined(COMPILER_MSVC) | 714 #if defined(COMPILER_MSVC) |
| 714 #pragma warning(pop) | 715 #pragma warning(pop) |
| 715 #endif | 716 #endif |
| 716 | 717 |
| 717 } // namespace content | 718 } // namespace content |
| 718 | 719 |
| 719 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 720 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |