Chromium Code Reviews| 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..82f2e9ef693fc77026edad07bb565abecd59458d |
| --- /dev/null |
| +++ b/components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom |
| @@ -0,0 +1,14 @@ |
| +// 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; |
| + |
| +interface DiscardableSharedMemoryManager { |
|
dcheng
2016/11/25 00:07:08
Where does this interface live? Which process is i
Peng
2016/11/25 16:41:53
Right now, it will live in browser process. But in
|
| + // Allocate a locked discardable shared memory segment. |
| + AllocateLockedDiscardableSharedMemory( |
| + uint32 size, |
| + int32 id) => (handle<shared_buffer> memory); |
|
dcheng
2016/11/25 00:07:08
I know this is just porting an existing API, but I
dcheng
2016/11/25 00:08:05
(To be clear, it's not necessary to do that here.
Peng
2016/11/25 16:41:53
Right now, I don't know implementation detail of d
|
| + // Notify manager that a memory segment has been deleted. |
| + DeletedDiscardableSharedMemory(int32 id); |
| +}; |