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. |