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

Unified Diff: Source/wtf/ArrayBufferView.h

Issue 1097773004: Sharing of SharedArrayBuffer via PostMessage transfer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update for non-split typedarray hierarchy Created 5 years, 6 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
« Source/wtf/ArrayBufferContents.cpp ('K') | « Source/wtf/ArrayBufferContents.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ArrayBufferView.h
diff --git a/Source/wtf/ArrayBufferView.h b/Source/wtf/ArrayBufferView.h
index c6c5b0cf89687721def23f0f122a3f014b46a184..6e18ca502ee1fceebf6e17a40b891d6fe8ab26d7 100644
--- a/Source/wtf/ArrayBufferView.h
+++ b/Source/wtf/ArrayBufferView.h
@@ -73,6 +73,7 @@ class WTF_EXPORT ArrayBufferView : public RefCounted<ArrayBufferView> {
void setNeuterable(bool flag) { m_isNeuterable = flag; }
bool isNeuterable() const { return m_isNeuterable; }
+ bool isShared() const { return m_buffer ? m_buffer->isShared() : false; }
virtual ~ArrayBufferView();
« Source/wtf/ArrayBufferContents.cpp ('K') | « Source/wtf/ArrayBufferContents.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698