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

Unified Diff: third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h

Issue 1526183004: Prevent SharedArrayBuffer views from being used in bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: some tests Created 3 years, 11 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 | « third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
diff --git a/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h b/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
index 66ef3c049b4c24ce01817fee25163a9032bd6d28..25cff01cadb23a6e233ab0c4c84b02b37b251191 100644
--- a/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
+++ b/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
@@ -33,6 +33,7 @@ class CORE_EXPORT FlexibleArrayBufferView {
bool isEmpty() const { return !m_full && !m_smallData; }
bool isFull() const { return m_full; }
+ bool isShared() const { return m_full && m_full->isShared(); }
DOMArrayBufferView* full() const {
DCHECK(isFull());
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698