OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include <wtf/RefCounted.h> | 30 #include <wtf/RefCounted.h> |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class CSSStyleSheet; | 34 class CSSStyleSheet; |
35 class Document; | 35 class Document; |
36 class DocumentType; | 36 class DocumentType; |
37 class Frame; | 37 class Frame; |
38 class HTMLDocument; | 38 class HTMLDocument; |
39 class KURL; | 39 class KURL; |
| 40 class RegularExpression; |
40 | 41 |
41 typedef int ExceptionCode; | 42 typedef int ExceptionCode; |
42 | 43 |
43 class DOMImplementation { | 44 class DOMImplementation { |
44 public: | 45 public: |
45 static PassOwnPtr<DOMImplementation> create(Document* document) { return ado
ptPtr(new DOMImplementation(document)); } | 46 static PassOwnPtr<DOMImplementation> create(Document* document) { return ado
ptPtr(new DOMImplementation(document)); } |
46 | 47 |
47 void ref() { m_document->ref(); } | 48 void ref() { m_document->ref(); } |
48 void deref() { m_document->deref(); } | 49 void deref() { m_document->deref(); } |
49 Document* document() { return m_document; } | 50 Document* document() { return m_document; } |
(...skipping 16 matching lines...) Expand all Loading... |
66 | 67 |
67 static bool isXMLMIMEType(const String& MIMEType); | 68 static bool isXMLMIMEType(const String& MIMEType); |
68 static bool isTextMIMEType(const String& MIMEType); | 69 static bool isTextMIMEType(const String& MIMEType); |
69 | 70 |
70 private: | 71 private: |
71 DOMImplementation(Document*); | 72 DOMImplementation(Document*); |
72 | 73 |
73 Document* m_document; | 74 Document* m_document; |
74 }; | 75 }; |
75 | 76 |
| 77 class XMLMIMETypeRegExp { |
| 78 public: |
| 79 XMLMIMETypeRegExp(); |
| 80 ~XMLMIMETypeRegExp(); |
| 81 bool isXMLMIMEType(const String& mimeType); |
| 82 |
| 83 WTF_MAKE_NONCOPYABLE(XMLMIMETypeRegExp); |
| 84 private: |
| 85 OwnPtr<RegularExpression> m_regex; |
| 86 }; |
| 87 |
| 88 |
76 } // namespace WebCore | 89 } // namespace WebCore |
77 | 90 |
78 #endif | 91 #endif |
OLD | NEW |