summaryrefslogtreecommitdiffstats
path: root/V8Binding/v8/JSXPathNSResolver.h
diff options
context:
space:
mode:
Diffstat (limited to 'V8Binding/v8/JSXPathNSResolver.h')
-rw-r--r--V8Binding/v8/JSXPathNSResolver.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/V8Binding/v8/JSXPathNSResolver.h b/V8Binding/v8/JSXPathNSResolver.h
new file mode 100644
index 0000000..f0c340c
--- /dev/null
+++ b/V8Binding/v8/JSXPathNSResolver.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef JSXPATHNSRESOLVER_H__
+#define JSXPATHNSRESOLVER_H__
+
+#if ENABLE(XPATH)
+
+#include <v8.h>
+#include <wtf/RefCounted.h>
+#include "XPathNSResolver.h"
+
+namespace WebCore {
+
+ class String;
+
+ class JSXPathNSResolver : public XPathNSResolver {
+ public:
+
+ JSXPathNSResolver(v8::Handle<v8::Object> resolver);
+ virtual ~JSXPathNSResolver();
+
+ virtual String lookupNamespaceURI(const String& prefix);
+
+ private:
+ v8::Handle<v8::Object> m_resolver; // Handle to resolver object.
+ };
+}
+
+#endif // ENABLE(XPATH)
+
+#endif // JSXPATHNSRESOLVER_H__