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

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 build bots. Created 4 years, 1 month 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..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);
+};

Powered by Google App Engine
This is Rietveld 408576698