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

Unified Diff: content/common/memory_coordinator.mojom

Issue 2731913002: NotForReview: Expose the global memory budget (chromium side)
Patch Set: Add --simulate-memory-pressure 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/memory/child_memory_coordinator_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/memory_coordinator.mojom
diff --git a/content/common/memory_coordinator.mojom b/content/common/memory_coordinator.mojom
index 82d40b97d67a40d5877bc68f440a1c5cbe40dbd2..6fe7787523463f8c962246f9ee39d02a479aa641 100644
--- a/content/common/memory_coordinator.mojom
+++ b/content/common/memory_coordinator.mojom
@@ -11,4 +11,12 @@ import "content/common/child_memory_coordinator.mojom";
interface MemoryCoordinatorHandle {
// A child process calls this method when ChildMemoryCoordinator is created.
AddChild(ChildMemoryCoordinator child);
+
+ // Gets a shared memory handle for the global memory budget. A child
+ // process calls this method when ChildMemoryCoordinator is created.
+ GetGlobalBudgetHandle() => (handle<shared_buffer> budget_handle);
+
+ // TODO(bashi): Tentative.
+ // Sets an interval for a task to update the global memory budget.
+ SetGlobalBudgetUpdateInterval(uint32 interval_ms);
};
« no previous file with comments | « content/child/memory/child_memory_coordinator_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698