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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 583 |
584 void OnMemoryPressure( | 584 void OnMemoryPressure( |
585 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 585 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
586 | 586 |
587 void OnCreateNewSharedWorker( | 587 void OnCreateNewSharedWorker( |
588 const WorkerProcessMsg_CreateWorker_Params& params); | 588 const WorkerProcessMsg_CreateWorker_Params& params); |
589 bool RendererIsHidden() const; | 589 bool RendererIsHidden() const; |
590 void OnRendererHidden(); | 590 void OnRendererHidden(); |
591 void OnRendererVisible(); | 591 void OnRendererVisible(); |
592 | 592 |
| 593 enum RecordMemoryGrowthTiming { |
| 594 RECORD_30MIN_AFTER_PURGE, |
| 595 RECORD_60MIN_AFTER_PURGE, |
| 596 RECORD_90MIN_AFTER_PURGE |
| 597 }; |
593 void RecordPurgeAndSuspendMemoryGrowthMetrics( | 598 void RecordPurgeAndSuspendMemoryGrowthMetrics( |
594 const char* suffix, | 599 int foregrounded_count_when_purged, |
595 int foregrounded_count_when_purged); | 600 RecordMemoryGrowthTiming record_timing); |
596 | 601 |
597 void ReleaseFreeMemory(); | 602 void ReleaseFreeMemory(); |
598 | 603 |
599 void OnSyncMemoryPressure( | 604 void OnSyncMemoryPressure( |
600 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 605 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
601 | 606 |
602 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 607 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
603 int routing_id); | 608 int routing_id); |
604 | 609 |
605 std::unique_ptr<cc::SyntheticBeginFrameSource> | 610 std::unique_ptr<cc::SyntheticBeginFrameSource> |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 811 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
807 }; | 812 }; |
808 | 813 |
809 #if defined(COMPILER_MSVC) | 814 #if defined(COMPILER_MSVC) |
810 #pragma warning(pop) | 815 #pragma warning(pop) |
811 #endif | 816 #endif |
812 | 817 |
813 } // namespace content | 818 } // namespace content |
814 | 819 |
815 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 820 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |