Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsCOMPtr.h"
8 #include "nsISupportsImpl.h"
9 #include "nsIURIRefObject.h"
10 #include "nscore.h"
12 class nsIDOMMozNamedAttrMap;
13 class nsIDOMNode;
15 #ifndef nsHTMLURIRefObject_h__
16 #define nsHTMLURIRefObject_h__
18 #define NS_URI_REF_OBJECT_CID \
19 { /* {bdd79df6-1dd1-11b2-b29c-c3d63a58f1d2} */ \
20 0xbdd79df6, 0x1dd1, 0x11b2, \
21 { 0xb2, 0x9c, 0xc3, 0xd6, 0x3a, 0x58, 0xf1, 0xd2 } \
22 }
24 class nsHTMLURIRefObject : public nsIURIRefObject
25 {
26 public:
27 nsHTMLURIRefObject();
28 virtual ~nsHTMLURIRefObject();
30 // Interfaces for addref and release and queryinterface
31 NS_DECL_ISUPPORTS
33 NS_DECL_NSIURIREFOBJECT
35 protected:
36 nsCOMPtr<nsIDOMNode> mNode;
37 nsCOMPtr<nsIDOMMozNamedAttrMap> mAttributes;
38 uint32_t mCurAttrIndex;
39 uint32_t mAttributeCnt;
40 };
42 nsresult NS_NewHTMLURIRefObject(nsIURIRefObject** aResult, nsIDOMNode* aNode);
44 #endif /* nsHTMLURIRefObject_h__ */