Index: third_party/mojo/src/mojo/edk/embedder/platform_support.h |
diff --git a/third_party/mojo/src/mojo/edk/embedder/platform_support.h b/third_party/mojo/src/mojo/edk/embedder/platform_support.h |
index 4556ee3fa023c2e223b95ef2cd89204cd496119a..80ee81b8afc9278e8fb8d5398d38a3e47f705c4e 100644 |
--- a/third_party/mojo/src/mojo/edk/embedder/platform_support.h |
+++ b/third_party/mojo/src/mojo/edk/embedder/platform_support.h |
@@ -18,10 +18,13 @@ class PlatformSharedBuffer; |
// This class is provided by the embedder to implement (typically |
// platform-dependent) things needed by the Mojo system implementation. |
+// Implementations must be thread-safe. |
class MOJO_SYSTEM_IMPL_EXPORT PlatformSupport { |
public: |
virtual ~PlatformSupport() {} |
+ virtual void GetCryptoRandomBytes(void* bytes, size_t num_bytes) = 0; |
+ |
virtual PlatformSharedBuffer* CreateSharedBuffer(size_t num_bytes) = 0; |
virtual PlatformSharedBuffer* CreateSharedBufferFromHandle( |
size_t num_bytes, |