| Index: third_party/WebKit/Source/core/html/HTMLMediaElement.h
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
|
| index 980f33aa210609a2dc9eb0c08ff41aa2e52a4cab..3f00ca1575ca2bf4c601256c201dbed7ce7a33f6 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
|
| @@ -140,7 +140,7 @@ public:
|
| TimeRanges* seekable() const;
|
| bool ended() const;
|
| bool autoplay() const;
|
| - enum class RecordMetricsBehavior { DoNotRecord, DoRecord };
|
| + enum class RecordMetricsBehavior { DoNotRecord, RecordOnSandboxFailure };
|
| bool shouldAutoplay(const RecordMetricsBehavior = RecordMetricsBehavior::DoNotRecord);
|
| bool loop() const;
|
| void setLoop(bool);
|
| @@ -280,6 +280,8 @@ protected:
|
| DisplayMode displayMode() const { return m_displayMode; }
|
| virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; }
|
|
|
| + void recordAutoplayMetric(AutoplayMetrics);
|
| +
|
| private:
|
| void resetMediaPlayerAndMediaSource();
|
|
|
| @@ -383,14 +385,6 @@ private:
|
| // This does not check user gesture restrictions.
|
| void playInternal();
|
|
|
| - // If we are about to enter a paused state, call this to record
|
| - // autoplay metrics. If we were already in a stopped state, then
|
| - // this does nothing.
|
| - void recordMetricsIfPausing();
|
| - // Could stopping at this point be considered a bailout of playback?
|
| - // (as in, "The user really didn't want to play this").
|
| - bool isBailout() const;
|
| - void autoplayMediaEncountered();
|
| void allowVideoRendering();
|
|
|
| void updateVolume();
|
| @@ -422,8 +416,6 @@ private:
|
|
|
| void setAllowHiddenVolumeControls(bool);
|
|
|
| - void recordAutoplayMetric(AutoplayMetrics);
|
| -
|
| WebMediaPlayer::CORSMode corsMode() const;
|
|
|
| // Returns the "direction of playback" value as specified in the HTML5 spec.
|
| @@ -443,8 +435,9 @@ private:
|
| // Return true if and only if we require a user gesture before letting
|
| // the media play.
|
| bool isUserGestureRequiredForPlay() const;
|
| - void removeUserGestureRequirement();
|
| - void setInitialPlayWithoutUserGestures(bool);
|
| + // If the user gesture is required, then this will remove it. If the
|
| + // media is later autoplayed, then the supplied reason will be recorded.
|
| + void removeUserGestureRequirement(AutoplayMetrics);
|
|
|
| void setNetworkState(NetworkState);
|
|
|
| @@ -552,8 +545,6 @@ private:
|
| bool m_remoteRoutesAvailable : 1;
|
| bool m_playingRemotely : 1;
|
| bool m_isFinalizing : 1;
|
| - bool m_initialPlayWithoutUserGesture : 1;
|
| - bool m_autoplayMediaCounted : 1;
|
| // Whether this element is in overlay fullscreen mode.
|
| bool m_inOverlayFullscreenVideo : 1;
|
|
|
|
|