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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h

Issue 1593763002: Keep AudioSourceNode from premature GC with ScriptWrappable::hasPendingActivity() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning up test Created 4 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/AudioScheduledSourceNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
index ed6a5300de45d6b370c3d958f7d13e75e6beef13..ff5f9ef4f16bdcf302e66df6fdca0fffa27699d9 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
@@ -130,6 +130,9 @@ public:
EventListener* onended();
void setOnended(PassRefPtrWillBeRawPtr<EventListener>);
+ // ScriptWrappable
+ bool hasPendingActivity() const final;
+
protected:
explicit AudioScheduledSourceNode(AbstractAudioContext&);
AudioScheduledSourceHandler& audioScheduledSourceHandler() const;

Powered by Google App Engine
This is Rietveld 408576698