DOMImplementation.h [plain text]
#ifndef DOMImplementation_h
#define DOMImplementation_h
#include "Document.h"
#include "MediaPlayer.h"
#include <memory>
#include <wtf/Forward.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class CSSStyleSheet;
class Document;
class DocumentType;
class Frame;
class HTMLDocument;
class URL;
typedef int ExceptionCode;
class DOMImplementation : public ScriptWrappable {
WTF_MAKE_FAST_ALLOCATED;
public:
explicit DOMImplementation(Document&);
void ref() { m_document.ref(); }
void deref() { m_document.deref(); }
Document& document() { return m_document; }
static bool hasFeature(const String& feature, const String& version);
RefPtr<DocumentType> createDocumentType(const String& qualifiedName, const String& publicId, const String& systemId, ExceptionCode&);
RefPtr<Document> createDocument(const String& namespaceURI, const String& qualifiedName, DocumentType*, ExceptionCode&);
DOMImplementation* getInterface(const String& feature);
static RefPtr<CSSStyleSheet> createCSSStyleSheet(const String& title, const String& media, ExceptionCode&);
RefPtr<HTMLDocument> createHTMLDocument(const String& title);
static RefPtr<Document> createDocument(const String& MIMEType, Frame*, const URL&);
WEBCORE_EXPORT static bool isXMLMIMEType(const String& MIMEType);
WEBCORE_EXPORT static bool isTextMIMEType(const String& MIMEType);
private:
Document& m_document;
};
}
#endif