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