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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module content.mojom; 5 module content.mojom;
6 6
7 import "content/common/child_memory_coordinator.mojom"; 7 import "content/common/child_memory_coordinator.mojom";
8 8
9 // An interface to access the central memory coordinator from a child process. 9 // An interface to access the central memory coordinator from a child process.
10 // The browser process creates a handle for each child process. 10 // The browser process creates a handle for each child process.
11 interface MemoryCoordinatorHandle { 11 interface MemoryCoordinatorHandle {
12 // A child process calls this method when ChildMemoryCoordinator is created. 12 // A child process calls this method when ChildMemoryCoordinator is created.
13 AddChild(ChildMemoryCoordinator child); 13 AddChild(ChildMemoryCoordinator child);
14
15 // Gets a shared memory handle for the global memory budget. A child
16 // process calls this method when ChildMemoryCoordinator is created.
17 GetGlobalBudgetHandle() => (handle<shared_buffer> budget_handle);
18
19 // TODO(bashi): Tentative.
20 // Sets an interval for a task to update the global memory budget.
21 SetGlobalBudgetUpdateInterval(uint32 interval_ms);
14 }; 22 };
OLDNEW
« 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