| 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 std::unique_ptr<base::MessageLoop> main_message_loop, | 467 std::unique_ptr<base::MessageLoop> main_message_loop, |
| 468 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); | 468 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); |
| 469 | 469 |
| 470 private: | 470 private: |
| 471 // IPC::Listener | 471 // IPC::Listener |
| 472 void OnChannelError() override; | 472 void OnChannelError() override; |
| 473 | 473 |
| 474 // ChildThread | 474 // ChildThread |
| 475 bool OnControlMessageReceived(const IPC::Message& msg) override; | 475 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 476 void OnProcessBackgrounded(bool backgrounded) override; | 476 void OnProcessBackgrounded(bool backgrounded) override; |
| 477 void OnProcessResume() override; |
| 477 void OnProcessPurgeAndSuspend() override; | 478 void OnProcessPurgeAndSuspend() override; |
| 478 void RecordAction(const base::UserMetricsAction& action) override; | 479 void RecordAction(const base::UserMetricsAction& action) override; |
| 479 void RecordComputedAction(const std::string& action) override; | 480 void RecordComputedAction(const std::string& action) override; |
| 480 | 481 |
| 481 // GpuChannelHostFactory implementation: | 482 // GpuChannelHostFactory implementation: |
| 482 bool IsMainThread() override; | 483 bool IsMainThread() override; |
| 483 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 484 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
| 484 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 485 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
| 485 size_t size) override; | 486 size_t size) override; |
| 486 | 487 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 void OnSystemColorsChanged(int aqua_color_variant, | 521 void OnSystemColorsChanged(int aqua_color_variant, |
| 521 const std::string& highlight_text_color, | 522 const std::string& highlight_text_color, |
| 522 const std::string& highlight_color); | 523 const std::string& highlight_color); |
| 523 #endif | 524 #endif |
| 524 void OnCreateNewSharedWorker( | 525 void OnCreateNewSharedWorker( |
| 525 const WorkerProcessMsg_CreateWorker_Params& params); | 526 const WorkerProcessMsg_CreateWorker_Params& params); |
| 526 bool RendererIsHidden() const; | 527 bool RendererIsHidden() const; |
| 527 void OnRendererHidden(); | 528 void OnRendererHidden(); |
| 528 void OnRendererVisible(); | 529 void OnRendererVisible(); |
| 529 | 530 |
| 531 void RecordPurgeAndSuspendMetrics() const; |
| 532 |
| 530 void ReleaseFreeMemory(); | 533 void ReleaseFreeMemory(); |
| 531 | 534 |
| 532 void OnSyncMemoryPressure( | 535 void OnSyncMemoryPressure( |
| 533 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 536 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 534 | 537 |
| 535 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 538 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 536 int routing_id); | 539 int routing_id); |
| 537 | 540 |
| 538 // These objects live solely on the render thread. | 541 // These objects live solely on the render thread. |
| 539 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; | 542 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 725 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 723 }; | 726 }; |
| 724 | 727 |
| 725 #if defined(COMPILER_MSVC) | 728 #if defined(COMPILER_MSVC) |
| 726 #pragma warning(pop) | 729 #pragma warning(pop) |
| 727 #endif | 730 #endif |
| 728 | 731 |
| 729 } // namespace content | 732 } // namespace content |
| 730 | 733 |
| 731 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 734 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |