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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 void OnProcessResume() override; | 499 void OnProcessResume() override; |
500 void OnProcessPurgeAndSuspend() override; | 500 void OnProcessPurgeAndSuspend() override; |
501 void RecordAction(const base::UserMetricsAction& action) override; | 501 void RecordAction(const base::UserMetricsAction& action) override; |
502 void RecordComputedAction(const std::string& action) override; | 502 void RecordComputedAction(const std::string& action) override; |
503 | 503 |
504 bool IsMainThread(); | 504 bool IsMainThread(); |
505 | 505 |
506 // Purges memory and suspends the renderer. | 506 // Purges memory and suspends the renderer. |
507 void SuspendRenderer(); | 507 void SuspendRenderer(); |
508 | 508 |
| 509 // Resumes the renderer if it is suspended. |
| 510 void ResumeRenderer(); |
| 511 |
509 // base::MemoryCoordinatorClient implementation: | 512 // base::MemoryCoordinatorClient implementation: |
510 void OnMemoryStateChange(base::MemoryState state) override; | 513 void OnMemoryStateChange(base::MemoryState state) override; |
511 | 514 |
512 void ClearMemory(); | 515 void ClearMemory(); |
513 | 516 |
514 void Init( | 517 void Init( |
515 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 518 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
516 | 519 |
517 void InitializeCompositorThread(); | 520 void InitializeCompositorThread(); |
518 | 521 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 757 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
755 }; | 758 }; |
756 | 759 |
757 #if defined(COMPILER_MSVC) | 760 #if defined(COMPILER_MSVC) |
758 #pragma warning(pop) | 761 #pragma warning(pop) |
759 #endif | 762 #endif |
760 | 763 |
761 } // namespace content | 764 } // namespace content |
762 | 765 |
763 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 766 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |