| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 | 574 |
| 575 void OnMemoryPressure( | 575 void OnMemoryPressure( |
| 576 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 576 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 577 | 577 |
| 578 void OnCreateNewSharedWorker( | 578 void OnCreateNewSharedWorker( |
| 579 const WorkerProcessMsg_CreateWorker_Params& params); | 579 const WorkerProcessMsg_CreateWorker_Params& params); |
| 580 bool RendererIsHidden() const; | 580 bool RendererIsHidden() const; |
| 581 void OnRendererHidden(); | 581 void OnRendererHidden(); |
| 582 void OnRendererVisible(); | 582 void OnRendererVisible(); |
| 583 | 583 |
| 584 void RecordPurgeAndSuspendMemoryGrowthMetrics() const; | 584 void RecordPurgeAndSuspendMemoryGrowthMetrics( |
| 585 const char* suffix, |
| 586 int foregrounded_count_when_purged); |
| 585 | 587 |
| 586 void ReleaseFreeMemory(); | 588 void ReleaseFreeMemory(); |
| 587 | 589 |
| 588 void OnSyncMemoryPressure( | 590 void OnSyncMemoryPressure( |
| 589 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 591 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 590 | 592 |
| 591 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 593 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 592 int routing_id); | 594 int routing_id); |
| 593 | 595 |
| 594 std::unique_ptr<cc::SyntheticBeginFrameSource> | 596 std::unique_ptr<cc::SyntheticBeginFrameSource> |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 mojom::StoragePartitionServicePtr storage_partition_service_; | 778 mojom::StoragePartitionServicePtr storage_partition_service_; |
| 777 | 779 |
| 778 AssociatedInterfaceRegistryImpl associated_interfaces_; | 780 AssociatedInterfaceRegistryImpl associated_interfaces_; |
| 779 | 781 |
| 780 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; | 782 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; |
| 781 | 783 |
| 782 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; | 784 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; |
| 783 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; | 785 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; |
| 784 | 786 |
| 785 RendererMemoryMetrics purge_and_suspend_memory_metrics_; | 787 RendererMemoryMetrics purge_and_suspend_memory_metrics_; |
| 786 base::CancelableClosure record_purge_suspend_growth_metric_closure_; | |
| 787 bool needs_to_record_first_active_paint_; | 788 bool needs_to_record_first_active_paint_; |
| 789 int process_foregrounded_count_; |
| 788 | 790 |
| 789 int32_t client_id_; | 791 int32_t client_id_; |
| 790 | 792 |
| 791 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; | 793 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; |
| 792 | 794 |
| 793 mojom::FrameSinkProviderPtr frame_sink_provider_; | 795 mojom::FrameSinkProviderPtr frame_sink_provider_; |
| 794 | 796 |
| 795 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 797 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 796 }; | 798 }; |
| 797 | 799 |
| 798 #if defined(COMPILER_MSVC) | 800 #if defined(COMPILER_MSVC) |
| 799 #pragma warning(pop) | 801 #pragma warning(pop) |
| 800 #endif | 802 #endif |
| 801 | 803 |
| 802 } // namespace content | 804 } // namespace content |
| 803 | 805 |
| 804 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 806 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |