michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsXPathNSResolver_h__ michael@0: #define nsXPathNSResolver_h__ michael@0: michael@0: #include "nsIDOMXPathNSResolver.h" michael@0: #include "nsIDOMNode.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsCycleCollectionParticipant.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: /** michael@0: * A class for evaluating an XPath expression string michael@0: */ michael@0: class nsXPathNSResolver MOZ_FINAL : public nsIDOMXPathNSResolver michael@0: { michael@0: public: michael@0: nsXPathNSResolver(nsIDOMNode* aNode); michael@0: michael@0: // nsISupports interface michael@0: NS_DECL_CYCLE_COLLECTING_ISUPPORTS michael@0: NS_DECL_CYCLE_COLLECTION_CLASS(nsXPathNSResolver) michael@0: michael@0: // nsIDOMXPathNSResolver interface michael@0: NS_DECL_NSIDOMXPATHNSRESOLVER michael@0: michael@0: private: michael@0: nsCOMPtr mNode; michael@0: }; michael@0: michael@0: #endif