michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: michael@0: #include "nsCOMPtr.h" michael@0: #include "nsISupportsImpl.h" michael@0: #include "nsIURIRefObject.h" michael@0: #include "nscore.h" michael@0: michael@0: class nsIDOMMozNamedAttrMap; michael@0: class nsIDOMNode; michael@0: michael@0: #ifndef nsHTMLURIRefObject_h__ michael@0: #define nsHTMLURIRefObject_h__ michael@0: michael@0: #define NS_URI_REF_OBJECT_CID \ michael@0: { /* {bdd79df6-1dd1-11b2-b29c-c3d63a58f1d2} */ \ michael@0: 0xbdd79df6, 0x1dd1, 0x11b2, \ michael@0: { 0xb2, 0x9c, 0xc3, 0xd6, 0x3a, 0x58, 0xf1, 0xd2 } \ michael@0: } michael@0: michael@0: class nsHTMLURIRefObject : public nsIURIRefObject michael@0: { michael@0: public: michael@0: nsHTMLURIRefObject(); michael@0: virtual ~nsHTMLURIRefObject(); michael@0: michael@0: // Interfaces for addref and release and queryinterface michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_DECL_NSIURIREFOBJECT michael@0: michael@0: protected: michael@0: nsCOMPtr mNode; michael@0: nsCOMPtr mAttributes; michael@0: uint32_t mCurAttrIndex; michael@0: uint32_t mAttributeCnt; michael@0: }; michael@0: michael@0: nsresult NS_NewHTMLURIRefObject(nsIURIRefObject** aResult, nsIDOMNode* aNode); michael@0: michael@0: #endif /* nsHTMLURIRefObject_h__ */ michael@0: