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

Unified Diff: third_party/mojo/src/mojo/edk/embedder/platform_support.h

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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
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,

Powered by Google App Engine
This is Rietveld 408576698