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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 void OnProcessPurgeAndSuspend() override; | 527 void OnProcessPurgeAndSuspend() override; |
528 void RecordAction(const base::UserMetricsAction& action) override; | 528 void RecordAction(const base::UserMetricsAction& action) override; |
529 void RecordComputedAction(const std::string& action) override; | 529 void RecordComputedAction(const std::string& action) override; |
530 | 530 |
531 bool IsMainThread(); | 531 bool IsMainThread(); |
532 | 532 |
533 // base::MemoryCoordinatorClient implementation: | 533 // base::MemoryCoordinatorClient implementation: |
534 void OnMemoryStateChange(base::MemoryState state) override; | 534 void OnMemoryStateChange(base::MemoryState state) override; |
535 void OnPurgeMemory() override; | 535 void OnPurgeMemory() override; |
536 | 536 |
| 537 void RecordPurgeMemory(RendererMemoryMetrics before); |
| 538 |
537 void ClearMemory(); | 539 void ClearMemory(); |
538 | 540 |
539 void Init( | 541 void Init( |
540 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 542 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
541 | 543 |
542 void InitializeCompositorThread(); | 544 void InitializeCompositorThread(); |
543 | 545 |
544 void InitializeWebKit( | 546 void InitializeWebKit( |
545 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 547 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
546 | 548 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 795 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
794 }; | 796 }; |
795 | 797 |
796 #if defined(COMPILER_MSVC) | 798 #if defined(COMPILER_MSVC) |
797 #pragma warning(pop) | 799 #pragma warning(pop) |
798 #endif | 800 #endif |
799 | 801 |
800 } // namespace content | 802 } // namespace content |
801 | 803 |
802 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 804 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |