| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 std::unique_ptr<base::MessageLoop> main_message_loop, | 479 std::unique_ptr<base::MessageLoop> main_message_loop, |
| 480 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); | 480 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); |
| 481 | 481 |
| 482 private: | 482 private: |
| 483 // IPC::Listener | 483 // IPC::Listener |
| 484 void OnChannelError() override; | 484 void OnChannelError() override; |
| 485 | 485 |
| 486 // ChildThread | 486 // ChildThread |
| 487 bool OnControlMessageReceived(const IPC::Message& msg) override; | 487 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 488 void OnProcessBackgrounded(bool backgrounded) override; | 488 void OnProcessBackgrounded(bool backgrounded) override; |
| 489 void OnProcessResume() override; |
| 489 void OnProcessPurgeAndSuspend() override; | 490 void OnProcessPurgeAndSuspend() override; |
| 490 void RecordAction(const base::UserMetricsAction& action) override; | 491 void RecordAction(const base::UserMetricsAction& action) override; |
| 491 void RecordComputedAction(const std::string& action) override; | 492 void RecordComputedAction(const std::string& action) override; |
| 492 | 493 |
| 493 // GpuChannelHostFactory implementation: | 494 // GpuChannelHostFactory implementation: |
| 494 bool IsMainThread() override; | 495 bool IsMainThread() override; |
| 495 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 496 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
| 496 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 497 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
| 497 size_t size) override; | 498 size_t size) override; |
| 498 | 499 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 747 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 747 }; | 748 }; |
| 748 | 749 |
| 749 #if defined(COMPILER_MSVC) | 750 #if defined(COMPILER_MSVC) |
| 750 #pragma warning(pop) | 751 #pragma warning(pop) |
| 751 #endif | 752 #endif |
| 752 | 753 |
| 753 } // namespace content | 754 } // namespace content |
| 754 | 755 |
| 755 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 756 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |