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

Unified Diff: mojo/edk/system/broker.h

Issue 1555273002: [mojo] Add CreateSharedBuffer method to Broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 11 months 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
« no previous file with comments | « mojo/edk/embedder/platform_channel_utils_posix.cc ('k') | mojo/edk/system/broker_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/broker.h
diff --git a/mojo/edk/system/broker.h b/mojo/edk/system/broker.h
index c8b44643ba6f3d48a7d5c4b69816de9c5df86692..fdc8317f95d46aa45f5266cae3c17b3e281bed23 100644
--- a/mojo/edk/system/broker.h
+++ b/mojo/edk/system/broker.h
@@ -14,6 +14,7 @@ namespace mojo {
namespace edk {
class MessagePipeDispatcher;
class RawChannel;
+class PlatformSharedBuffer;
// An interface for communicating to a central "broker" process from each
// process using the EDK. It serves two purposes:
@@ -43,6 +44,10 @@ class MOJO_SYSTEM_IMPL_EXPORT Broker {
virtual void TokenToHandle(const uint64_t* tokens,
size_t count,
PlatformHandle* handles) = 0;
+#else
+ // Creates a shared buffer.
+ virtual scoped_refptr<PlatformSharedBuffer> CreateSharedBuffer(
+ size_t num_bytes) = 0;
#endif
// Multiplexing related methods. They are called from the IO thread only.
« no previous file with comments | « mojo/edk/embedder/platform_channel_utils_posix.cc ('k') | mojo/edk/system/broker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698