summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/html/HTMLMediaElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLMediaElement.h')
-rw-r--r--Source/WebCore/html/HTMLMediaElement.h33
1 files changed, 23 insertions, 10 deletions
diff --git a/Source/WebCore/html/HTMLMediaElement.h b/Source/WebCore/html/HTMLMediaElement.h
index 9778fd4..f870586 100644
--- a/Source/WebCore/html/HTMLMediaElement.h
+++ b/Source/WebCore/html/HTMLMediaElement.h
@@ -131,8 +131,8 @@ public:
#if ENABLE(MEDIA_STATISTICS)
// Statistics
- unsigned long webkitAudioBytesDecoded() const;
- unsigned long webkitVideoBytesDecoded() const;
+ unsigned webkitAudioDecodedByteCount() const;
+ unsigned webkitVideoDecodedByteCount() const;
#endif
// controls
@@ -176,6 +176,27 @@ public:
void sourceWillBeRemoved(HTMLSourceElement*);
void sourceWasAdded(HTMLSourceElement*);
+ void privateBrowsingStateDidChange();
+
+ // Restrictions to change default behaviors.
+ enum BehaviorRestrictions {
+ NoRestrictions = 0,
+ RequireUserGestureForLoadRestriction = 1 << 0,
+ RequireUserGestureForRateChangeRestriction = 1 << 1,
+ RequireUserGestureForFullScreenRestriction = 1 << 2
+ };
+
+ bool requireUserGestureForLoad() const { return m_restrictions & RequireUserGestureForLoadRestriction; }
+ bool requireUserGestureForRateChange() const { return m_restrictions & RequireUserGestureForRateChangeRestriction; }
+ bool requireUserGestureForFullScreen() const { return m_restrictions & RequireUserGestureForFullScreenRestriction; }
+
+ void setBehaviorRestrictions(BehaviorRestrictions restrictions) { m_restrictions = restrictions; }
+
+ // Media cache management.
+ static void getSitesInMediaCache(Vector<String>&);
+ static void clearMediaCache();
+ static void clearMediaCacheForSite(const String&);
+
protected:
HTMLMediaElement(const QualifiedName&, Document*);
virtual ~HTMLMediaElement();
@@ -298,14 +319,6 @@ private:
void invalidateCachedTime();
void refreshCachedTime() const;
- // Restrictions to change default behaviors. This is effectively a compile time choice at the moment
- // because there are no accessor functions.
- enum BehaviorRestrictions {
- NoRestrictions = 0,
- RequireUserGestureForLoadRestriction = 1 << 0,
- RequireUserGestureForRateChangeRestriction = 1 << 1,
- };
-
Timer<HTMLMediaElement> m_loadTimer;
Timer<HTMLMediaElement> m_asyncEventTimer;
Timer<HTMLMediaElement> m_progressEventTimer;