Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1243)

Side by Side Diff: Source/WebCore/dom/DOMImplementation.h

Issue 8210003: Merge 96999 - Make isXMLMIMEType regex use TLS (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/workers/worker-multi-startup-expected.txt ('k') | Source/WebCore/dom/DOMImplementation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698