Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2763933002: memory coordinator: Purge memory under memory pressure (Closed)
Patch Set: Use int64_t Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 void OnProcessPurgeAndSuspend() override; 526 void OnProcessPurgeAndSuspend() override;
527 void RecordAction(const base::UserMetricsAction& action) override; 527 void RecordAction(const base::UserMetricsAction& action) override;
528 void RecordComputedAction(const std::string& action) override; 528 void RecordComputedAction(const std::string& action) override;
529 529
530 bool IsMainThread(); 530 bool IsMainThread();
531 531
532 // base::MemoryCoordinatorClient implementation: 532 // base::MemoryCoordinatorClient implementation:
533 void OnMemoryStateChange(base::MemoryState state) override; 533 void OnMemoryStateChange(base::MemoryState state) override;
534 void OnPurgeMemory() override; 534 void OnPurgeMemory() override;
535 535
536 void RecordPurgeMemory(RendererMemoryMetrics before);
537
536 void ClearMemory(); 538 void ClearMemory();
537 539
538 void Init( 540 void Init(
539 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 541 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
540 542
541 void InitializeCompositorThread(); 543 void InitializeCompositorThread();
542 544
543 void InitializeWebKit( 545 void InitializeWebKit(
544 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 546 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
545 547
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 791 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
790 }; 792 };
791 793
792 #if defined(COMPILER_MSVC) 794 #if defined(COMPILER_MSVC)
793 #pragma warning(pop) 795 #pragma warning(pop)
794 #endif 796 #endif
795 797
796 } // namespace content 798 } // namespace content
797 799
798 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 800 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698