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

Side by Side Diff: components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom

Issue 2583583002: Mojo: Fix wrapping of invalid SharedMemoryHandles. (Closed)
Patch Set: . 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 unified diff | Download patch
« no previous file with comments | « no previous file | mojo/public/cpp/system/platform_handle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 discardable_memory.mojom; 5 module discardable_memory.mojom;
6 6
7 // This interface is used for allocating discardable shared memory from browser 7 // This interface is used for allocating discardable shared memory from browser
8 // process. For mus+ash, this service will live in mus process. 8 // process. For mus+ash, this service will live in mus process.
9 interface DiscardableSharedMemoryManager { 9 interface DiscardableSharedMemoryManager {
10 // Allocate a locked discardable shared memory segment. 10 // Allocate a locked discardable shared memory segment.
11 AllocateLockedDiscardableSharedMemory( 11 AllocateLockedDiscardableSharedMemory(
12 uint32 size, 12 uint32 size,
13 int32 id) => (handle<shared_buffer> memory); 13 int32 id) => (handle<shared_buffer>? memory);
14 // Notify manager that a memory segment has been deleted. 14 // Notify manager that a memory segment has been deleted.
15 DeletedDiscardableSharedMemory(int32 id); 15 DeletedDiscardableSharedMemory(int32 id);
16 }; 16 };
OLDNEW
« no previous file with comments | « no previous file | mojo/public/cpp/system/platform_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698