| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 std::unique_ptr<base::MessageLoop> main_message_loop, | 468 std::unique_ptr<base::MessageLoop> main_message_loop, |
| 469 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); | 469 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); |
| 470 | 470 |
| 471 private: | 471 private: |
| 472 // IPC::Listener | 472 // IPC::Listener |
| 473 void OnChannelError() override; | 473 void OnChannelError() override; |
| 474 | 474 |
| 475 // ChildThread | 475 // ChildThread |
| 476 bool OnControlMessageReceived(const IPC::Message& msg) override; | 476 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 477 void OnProcessBackgrounded(bool backgrounded) override; | 477 void OnProcessBackgrounded(bool backgrounded) override; |
| 478 void OnAudioStateChanged(bool has_active_audio) override; |
| 478 void OnProcessPurgeAndSuspend() override; | 479 void OnProcessPurgeAndSuspend() override; |
| 479 void RecordAction(const base::UserMetricsAction& action) override; | 480 void RecordAction(const base::UserMetricsAction& action) override; |
| 480 void RecordComputedAction(const std::string& action) override; | 481 void RecordComputedAction(const std::string& action) override; |
| 481 | 482 |
| 482 // GpuChannelHostFactory implementation: | 483 // GpuChannelHostFactory implementation: |
| 483 bool IsMainThread() override; | 484 bool IsMainThread() override; |
| 484 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 485 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
| 485 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 486 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
| 486 size_t size) override; | 487 size_t size) override; |
| 487 | 488 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 727 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 727 }; | 728 }; |
| 728 | 729 |
| 729 #if defined(COMPILER_MSVC) | 730 #if defined(COMPILER_MSVC) |
| 730 #pragma warning(pop) | 731 #pragma warning(pop) |
| 731 #endif | 732 #endif |
| 732 | 733 |
| 733 } // namespace content | 734 } // namespace content |
| 734 | 735 |
| 735 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 736 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |