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

Unified Diff: include/v8.h

Issue 2290753002: Blink-compatible serialization of SharedArrayBuffer. (Closed)
Patch Set: msvc dislikes array initializer Created 4 years, 4 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 | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index e16e1d751e9781dd24c6260e2f8a91f3f43cbd6e..748cb8d7b2cc62698477d5ebd5af492be7bbd062 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -1698,6 +1698,12 @@ class V8_EXPORT ValueSerializer {
void TransferArrayBuffer(uint32_t transfer_id,
Local<ArrayBuffer> array_buffer);
+ /*
+ * Similar to TransferArrayBuffer, but for SharedArrayBuffer.
+ */
+ void TransferSharedArrayBuffer(uint32_t transfer_id,
+ Local<SharedArrayBuffer> shared_array_buffer);
+
private:
ValueSerializer(const ValueSerializer&) = delete;
void operator=(const ValueSerializer&) = delete;
@@ -1738,6 +1744,13 @@ class V8_EXPORT ValueDeserializer {
Local<ArrayBuffer> array_buffer);
/*
+ * Similar to TransferArrayBuffer, but for SharedArrayBuffer.
+ * transfer_id exists in the same namespace as unshared ArrayBuffer objects.
+ */
+ void TransferSharedArrayBuffer(uint32_t transfer_id,
+ Local<SharedArrayBuffer> shared_array_buffer);
+
+ /*
* Must be called before ReadHeader to enable support for reading the legacy
* wire format (i.e., which predates this being shipped).
*
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698