Bumping manifests a=b2g-bump
[gecko.git] / parser / xml / nsSAXAttributes.h
blob063eb6d42b28bdd79d8200992e38cbd47693f2dc
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/. */
6 #ifndef nsSAXAttributes_h__
7 #define nsSAXAttributes_h__
9 #include "nsISupports.h"
10 #include "nsISAXAttributes.h"
11 #include "nsISAXMutableAttributes.h"
12 #include "nsTArray.h"
13 #include "nsString.h"
14 #include "mozilla/Attributes.h"
16 #define NS_SAXATTRIBUTES_CONTRACTID "@mozilla.org/saxparser/attributes;1"
17 #define NS_SAXATTRIBUTES_CID \
18 {/* {7bb40992-77eb-43db-9a4e-39d3bcc483ae}*/ \
19 0x7bb40992, 0x77eb, 0x43db, \
20 { 0x9a, 0x4e, 0x39, 0xd3, 0xbc, 0xc3, 0x83, 0xae} }
22 struct SAXAttr
24 nsString uri;
25 nsString localName;
26 nsString qName;
27 nsString type;
28 nsString value;
31 class nsSAXAttributes MOZ_FINAL : public nsISAXMutableAttributes
33 public:
34 NS_DECL_ISUPPORTS
35 NS_DECL_NSISAXATTRIBUTES
36 NS_DECL_NSISAXMUTABLEATTRIBUTES
38 private:
39 ~nsSAXAttributes() {}
40 nsTArray<SAXAttr> mAttrs;
43 #endif // nsSAXAttributes_h__