| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright 2005 Frerich Raabe <raabe@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef XPathNSResolver_h | 27 #ifndef XPathNSResolver_h |
| 28 #define XPathNSResolver_h | 28 #define XPathNSResolver_h |
| 29 | 29 |
| 30 #include "bindings/v8/ScriptWrappable.h" | 30 #include "bindings/v8/ScriptWrappable.h" |
| 31 #include "heap/Handle.h" |
| 31 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" |
| 32 #include "wtf/RefCounted.h" | 33 #include "wtf/RefCounted.h" |
| 33 | 34 |
| 34 namespace WebCore { | 35 namespace WebCore { |
| 35 | 36 |
| 36 class XPathNSResolver : public RefCounted<XPathNSResolver>, public ScriptWrappab
le { | 37 class XPathNSResolver : public RefCountedWillBeGarbageCollectedFinalized<XPathNS
Resolver>, public ScriptWrappable { |
| 38 DECLARE_GC_INFO; |
| 37 public: | 39 public: |
| 38 virtual ~XPathNSResolver(); | 40 virtual ~XPathNSResolver(); |
| 39 virtual AtomicString lookupNamespaceURI(const String& prefix) = 0; | 41 virtual AtomicString lookupNamespaceURI(const String& prefix) = 0; |
| 40 | 42 |
| 43 virtual void trace(Visitor*) { } |
| 44 |
| 41 protected: | 45 protected: |
| 42 XPathNSResolver() | 46 XPathNSResolver() |
| 43 { | 47 { |
| 44 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
| 45 } | 49 } |
| 46 }; | 50 }; |
| 47 | 51 |
| 48 } | 52 } |
| 49 | 53 |
| 50 #endif // XPathNSResolver_h | 54 #endif // XPathNSResolver_h |
| OLD | NEW |