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

Unified Diff: third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp

Issue 2702243003: Disallow cross-thread Persistent<> read access. (Closed)
Patch Set: rebase fixup Created 3 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/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
index 7d998904f03f97b81fd7f5beac40d0508fd9a403..5a7799129c57ca1f68760f1e735e0b0f2d55ae6b 100644
--- a/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
@@ -70,6 +70,10 @@ MediaElementAudioSourceHandler::~MediaElementAudioSourceHandler() {
uninitialize();
}
+HTMLMediaElement* MediaElementAudioSourceHandler::mediaElement() const {
+ return m_mediaElement.get();
+}
+
void MediaElementAudioSourceHandler::dispose() {
m_mediaElement->setAudioSourceNode(nullptr);
AudioHandler::dispose();

Powered by Google App Engine
This is Rietveld 408576698