| 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 void OnProcessBackgrounded(bool backgrounded) override; | 519 void OnProcessBackgrounded(bool backgrounded) override; |
| 520 void OnProcessResume() override; | 520 void OnProcessResume() override; |
| 521 void OnProcessPurgeAndSuspend() override; | 521 void OnProcessPurgeAndSuspend() override; |
| 522 void RecordAction(const base::UserMetricsAction& action) override; | 522 void RecordAction(const base::UserMetricsAction& action) override; |
| 523 void RecordComputedAction(const std::string& action) override; | 523 void RecordComputedAction(const std::string& action) override; |
| 524 | 524 |
| 525 bool IsMainThread(); | 525 bool IsMainThread(); |
| 526 | 526 |
| 527 // base::MemoryCoordinatorClient implementation: | 527 // base::MemoryCoordinatorClient implementation: |
| 528 void OnMemoryStateChange(base::MemoryState state) override; | 528 void OnMemoryStateChange(base::MemoryState state) override; |
| 529 void OnPurgeMemory() override; |
| 529 | 530 |
| 530 void ClearMemory(); | 531 void ClearMemory(); |
| 531 | 532 |
| 532 void Init( | 533 void Init( |
| 533 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 534 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
| 534 | 535 |
| 535 void InitializeCompositorThread(); | 536 void InitializeCompositorThread(); |
| 536 | 537 |
| 537 void InitializeWebKit( | 538 void InitializeWebKit( |
| 538 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 539 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 779 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 779 }; | 780 }; |
| 780 | 781 |
| 781 #if defined(COMPILER_MSVC) | 782 #if defined(COMPILER_MSVC) |
| 782 #pragma warning(pop) | 783 #pragma warning(pop) |
| 783 #endif | 784 #endif |
| 784 | 785 |
| 785 } // namespace content | 786 } // namespace content |
| 786 | 787 |
| 787 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 788 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |