summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/Document.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/Document.h')
-rw-r--r--WebCore/dom/Document.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/WebCore/dom/Document.h b/WebCore/dom/Document.h
index 45031c3..676caf9 100644
--- a/WebCore/dom/Document.h
+++ b/WebCore/dom/Document.h
@@ -3,7 +3,7 @@
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* (C) 2006 Alexey Proskuryakov (ap@webkit.org)
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
* Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
*
* This library is free software; you can redistribute it and/or
@@ -36,13 +36,14 @@
#include "DocumentMarker.h"
#include "ScriptExecutionContext.h"
#include "Timer.h"
-#if USE(JSC)
-#include <runtime/WeakGCMap.h>
-#endif
#include <wtf/HashCountedSet.h>
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
+#if USE(JSC)
+#include <runtime/WeakGCMap.h>
+#endif
+
namespace WebCore {
class Attr;
@@ -87,6 +88,7 @@ namespace WebCore {
class IntPoint;
class DOMWrapperWorld;
class JSNode;
+ class MediaCanStartListener;
class MouseEventWithHitTestResults;
class NodeFilter;
class NodeIterator;
@@ -618,6 +620,9 @@ public:
void detachRange(Range*);
void nodeChildrenChanged(ContainerNode*);
+ // nodeChildrenWillBeRemoved is used when removing all node children at once.
+ void nodeChildrenWillBeRemoved(ContainerNode*);
+ // nodeWillBeRemoved is only safe when removing one node at a time.
void nodeWillBeRemoved(Node*);
void textInserted(Node*, unsigned offset, unsigned length);
@@ -978,6 +983,10 @@ public:
void enqueuePageshowEvent(PageshowEventPersistence);
void enqueueHashchangeEvent(const String& oldURL, const String& newURL);
+ void addMediaCanStartListener(MediaCanStartListener*);
+ void removeMediaCanStartListener(MediaCanStartListener*);
+ MediaCanStartListener* takeAnyMediaCanStartListener();
+
protected:
Document(Frame*, bool isXHTML, bool isHTML);
@@ -1149,7 +1158,6 @@ private:
bool m_processingLoadEvent;
RefPtr<SerializedScriptValue> m_pendingStateObject;
- HashSet<RefPtr<HistoryItem> > m_associatedHistoryItems;
double m_startTime;
bool m_overMinimumLayoutThreshold;
// This is used to increase the minimum delay between re-layouts. It is set
@@ -1252,6 +1260,8 @@ private:
#endif
RefPtr<DocumentWeakReference> m_weakReference;
+
+ HashSet<MediaCanStartListener*> m_mediaCanStartListeners;
};
inline bool Document::hasElementWithId(AtomicStringImpl* id) const