Index: components/discardable_memory/public/interfaces/discardable_memory.mojom |
diff --git a/components/discardable_memory/public/interfaces/discardable_memory.mojom b/components/discardable_memory/public/interfaces/discardable_memory.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ed3e873ec5e61b5cc5921575791502ca25b98cc6 |
--- /dev/null |
+++ b/components/discardable_memory/public/interfaces/discardable_memory.mojom |
@@ -0,0 +1,14 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
reveman
2016/11/11 20:17:26
should the name of this file be "discardable_share
Peng
2016/11/11 22:50:35
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module discardable_memory.mojom; |
+ |
+interface DiscardableSharedMemoryManager { |
+ // Allocate a locked discardable share memory. |
reveman
2016/11/11 20:17:26
s/discardable share memory/discardable shared memo
Peng
2016/11/11 22:50:35
Done.
|
+ AllocateLockedDiscardableSharedMemory( |
+ uint32 size, |
+ int32 id) => (handle<shared_buffer> memory); |
+ // Notify a discardable shared memory is deleted. |
reveman
2016/11/11 20:17:26
"Notify manager that a memory segment has been del
Peng
2016/11/11 22:50:35
Done.
|
+ DeletedDiscardableSharedMemory(int32 id); |
+}; |