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

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

Issue 2314903002: Web Audio: when media playback requires a user gesture, apply rule to cross origin iframes. (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
index 585dec1f71edfef74b2d750455901d5eb155803e..dffa88dddc7780eb21bedc1c39b6de39955a1155 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
@@ -262,10 +262,12 @@ public:
// if necessary.
PeriodicWave* periodicWave(int type);
- // Check whether the AudioContext requires a user gesture and whether the
- // current stack is processing user gesture and record these information in
- // a histogram.
- void recordUserGestureState();
+ // Called by AudioContext nodes to start the AudioContext when it is
+ // suspended because of gesture requirement.
+ // It will be a no-op if:
+ // - no user gesture is required, or
+ // - a user gesture is required but none was provided.
+ void startRenderingIfNeeded();
protected:
explicit BaseAudioContext(Document*);

Powered by Google App Engine
This is Rietveld 408576698