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

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: Use correct names for the test files. Created 6 years, 3 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 7efdd5e33d729c7577f1f85b7bfdc69a9efd2b23..bdedbe921f43e39e3e3fd658ece33da66dfafff8 100644
--- a/Source/modules/webaudio/AudioContext.h
+++ b/Source/modules/webaudio/AudioContext.h
@@ -67,6 +67,7 @@ class OscillatorNode;
class PannerNode;
class PeriodicWave;
class ScriptProcessorNode;
+class SecurityOrigin;
class WaveShaperNode;
// AudioContext is the cornerstone of the web audio API and all AudioNodes are created from it.
@@ -235,6 +236,9 @@ public:
static unsigned s_hardwareContextCount;
+ // Get the security origin for this audio context.
+ PassRefPtr<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