|
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/. */ |
|
5 |
|
6 |
|
7 #include "nsCOMPtr.h" |
|
8 #include "nsISupportsImpl.h" |
|
9 #include "nsIURIRefObject.h" |
|
10 #include "nscore.h" |
|
11 |
|
12 class nsIDOMMozNamedAttrMap; |
|
13 class nsIDOMNode; |
|
14 |
|
15 #ifndef nsHTMLURIRefObject_h__ |
|
16 #define nsHTMLURIRefObject_h__ |
|
17 |
|
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 } |
|
23 |
|
24 class nsHTMLURIRefObject : public nsIURIRefObject |
|
25 { |
|
26 public: |
|
27 nsHTMLURIRefObject(); |
|
28 virtual ~nsHTMLURIRefObject(); |
|
29 |
|
30 // Interfaces for addref and release and queryinterface |
|
31 NS_DECL_ISUPPORTS |
|
32 |
|
33 NS_DECL_NSIURIREFOBJECT |
|
34 |
|
35 protected: |
|
36 nsCOMPtr<nsIDOMNode> mNode; |
|
37 nsCOMPtr<nsIDOMMozNamedAttrMap> mAttributes; |
|
38 uint32_t mCurAttrIndex; |
|
39 uint32_t mAttributeCnt; |
|
40 }; |
|
41 |
|
42 nsresult NS_NewHTMLURIRefObject(nsIURIRefObject** aResult, nsIDOMNode* aNode); |
|
43 |
|
44 #endif /* nsHTMLURIRefObject_h__ */ |
|
45 |