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 17 matching lines...) Expand all Loading... |
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 "heap/Handle.h" |
32 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" |
33 #include "wtf/RefCounted.h" | 33 #include "wtf/RefCounted.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class XPathNSResolver : public RefCountedWillBeGarbageCollectedFinalized<XPathNS
Resolver>, public ScriptWrappable { | 37 class XPathNSResolver : public RefCountedWillBeGarbageCollectedFinalized<XPathNS
Resolver>, public ScriptWrappable { |
38 DECLARE_GC_INFO; | |
39 public: | 38 public: |
40 virtual ~XPathNSResolver(); | 39 virtual ~XPathNSResolver(); |
41 virtual AtomicString lookupNamespaceURI(const String& prefix) = 0; | 40 virtual AtomicString lookupNamespaceURI(const String& prefix) = 0; |
42 | 41 |
43 virtual void trace(Visitor*) { } | 42 virtual void trace(Visitor*) { } |
44 | 43 |
45 protected: | 44 protected: |
46 XPathNSResolver() | 45 XPathNSResolver() |
47 { | 46 { |
48 ScriptWrappable::init(this); | 47 ScriptWrappable::init(this); |
49 } | 48 } |
50 }; | 49 }; |
51 | 50 |
52 } | 51 } |
53 | 52 |
54 #endif // XPathNSResolver_h | 53 #endif // XPathNSResolver_h |
OLD | NEW |