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

Unified Diff: components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Fix bot issues Created 4 years 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
Index: components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom
diff --git a/components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom b/components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..2685be1cd57cdec954c5de484a7b6e12f3c93d21
--- /dev/null
+++ b/components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom
@@ -0,0 +1,16 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module discardable_memory.mojom;
+
+// This interface is used for allocating discardable shared memory from browser
+// process. For mus+ash, this service will live in mus process.
+interface DiscardableSharedMemoryManager {
+ // Allocate a locked discardable shared memory segment.
+ AllocateLockedDiscardableSharedMemory(
+ uint32 size,
+ int32 id) => (handle<shared_buffer> memory);
+ // Notify manager that a memory segment has been deleted.
+ DeletedDiscardableSharedMemory(int32 id);
+};
« no previous file with comments | « components/discardable_memory/public/interfaces/OWNERS ('k') | components/discardable_memory/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698