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: #ifndef nsWebNavigationInfo_h__ michael@0: #define nsWebNavigationInfo_h__ michael@0: michael@0: #include "nsIWebNavigationInfo.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsICategoryManager.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsCString; michael@0: michael@0: // Class ID for webnavigationinfo michael@0: #define NS_WEBNAVIGATION_INFO_CID \ michael@0: { 0xf30bc0a2, 0x958b, 0x4287,{0xbf, 0x62, 0xce, 0x38, 0xba, 0x0c, 0x81, 0x1e}} michael@0: michael@0: class nsWebNavigationInfo MOZ_FINAL : public nsIWebNavigationInfo michael@0: { michael@0: public: michael@0: nsWebNavigationInfo() {} michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_DECL_NSIWEBNAVIGATIONINFO michael@0: michael@0: nsresult Init(); michael@0: michael@0: private: michael@0: ~nsWebNavigationInfo() {} michael@0: michael@0: // Check whether aType is supported. If this method throws, the michael@0: // value of aIsSupported is not changed. michael@0: nsresult IsTypeSupportedInternal(const nsCString& aType, michael@0: uint32_t* aIsSupported); michael@0: michael@0: nsCOMPtr mCategoryManager; michael@0: }; michael@0: michael@0: #endif // nsWebNavigationInfo_h__