| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 std::unique_ptr<base::MessageLoop> main_message_loop, | 477 std::unique_ptr<base::MessageLoop> main_message_loop, |
| 478 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); | 478 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); |
| 479 | 479 |
| 480 private: | 480 private: |
| 481 // IPC::Listener | 481 // IPC::Listener |
| 482 void OnChannelError() override; | 482 void OnChannelError() override; |
| 483 | 483 |
| 484 // ChildThread | 484 // ChildThread |
| 485 bool OnControlMessageReceived(const IPC::Message& msg) override; | 485 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 486 void OnProcessBackgrounded(bool backgrounded) override; | 486 void OnProcessBackgrounded(bool backgrounded) override; |
| 487 void OnProcessResume() override; |
| 487 void OnProcessPurgeAndSuspend() override; | 488 void OnProcessPurgeAndSuspend() override; |
| 488 void RecordAction(const base::UserMetricsAction& action) override; | 489 void RecordAction(const base::UserMetricsAction& action) override; |
| 489 void RecordComputedAction(const std::string& action) override; | 490 void RecordComputedAction(const std::string& action) override; |
| 490 | 491 |
| 491 // GpuChannelHostFactory implementation: | 492 // GpuChannelHostFactory implementation: |
| 492 bool IsMainThread() override; | 493 bool IsMainThread() override; |
| 493 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 494 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
| 494 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 495 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
| 495 size_t size) override; | 496 size_t size) override; |
| 496 | 497 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 void OnSystemColorsChanged(int aqua_color_variant, | 533 void OnSystemColorsChanged(int aqua_color_variant, |
| 533 const std::string& highlight_text_color, | 534 const std::string& highlight_text_color, |
| 534 const std::string& highlight_color); | 535 const std::string& highlight_color); |
| 535 #endif | 536 #endif |
| 536 void OnCreateNewSharedWorker( | 537 void OnCreateNewSharedWorker( |
| 537 const WorkerProcessMsg_CreateWorker_Params& params); | 538 const WorkerProcessMsg_CreateWorker_Params& params); |
| 538 bool RendererIsHidden() const; | 539 bool RendererIsHidden() const; |
| 539 void OnRendererHidden(); | 540 void OnRendererHidden(); |
| 540 void OnRendererVisible(); | 541 void OnRendererVisible(); |
| 541 | 542 |
| 543 void RecordPurgeAndSuspendMetrics() const; |
| 544 |
| 542 void ReleaseFreeMemory(); | 545 void ReleaseFreeMemory(); |
| 543 | 546 |
| 544 void OnSyncMemoryPressure( | 547 void OnSyncMemoryPressure( |
| 545 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 548 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 546 | 549 |
| 547 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 550 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 548 int routing_id); | 551 int routing_id); |
| 549 | 552 |
| 550 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); | 553 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); |
| 551 | 554 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 743 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 741 }; | 744 }; |
| 742 | 745 |
| 743 #if defined(COMPILER_MSVC) | 746 #if defined(COMPILER_MSVC) |
| 744 #pragma warning(pop) | 747 #pragma warning(pop) |
| 745 #endif | 748 #endif |
| 746 | 749 |
| 747 } // namespace content | 750 } // namespace content |
| 748 | 751 |
| 749 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 752 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |