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

Unified Diff: Source/modules/webaudio/AudioContext.h

Issue 520433002: Output silence if the MediaElementAudioSourceNode has a different origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 5 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: Source/modules/webaudio/AudioContext.h
diff --git a/Source/modules/webaudio/AudioContext.h b/Source/modules/webaudio/AudioContext.h
index 7776cf15dade63759ee8fccb64a3720992fe0fef..ca8a882dc9fc9f0baf5f4810ccf1e8beb2ecb112 100644
--- a/Source/modules/webaudio/AudioContext.h
+++ b/Source/modules/webaudio/AudioContext.h
@@ -70,6 +70,7 @@ class OscillatorNode;
class PannerNode;
class PeriodicWave;
class ScriptProcessorNode;
+class SecurityOrigin;
class StereoPannerNode;
class WaveShaperNode;
@@ -267,6 +268,9 @@ public:
static unsigned s_hardwareContextCount;
+ // Get the security origin for this audio context.
+ SecurityOrigin* securityOrigin() const;
+
protected:
explicit AudioContext(Document*);
AudioContext(Document*, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);

Powered by Google App Engine
This is Rietveld 408576698