nsWebNavigationInfo.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* -*- Mode: C++; tab-width: 8; 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. #ifndef nsWebNavigationInfo_h__
  6. #define nsWebNavigationInfo_h__
  7. #include "nsIWebNavigationInfo.h"
  8. #include "nsCOMPtr.h"
  9. #include "nsICategoryManager.h"
  10. #include "mozilla/Attributes.h"
  11. class nsCString;
  12. #define NS_WEBNAVIGATION_INFO_CID \
  13. { 0xf30bc0a2, 0x958b, 0x4287,{0xbf, 0x62, 0xce, 0x38, 0xba, 0x0c, 0x81, 0x1e}}
  14. class nsWebNavigationInfo final : public nsIWebNavigationInfo
  15. {
  16. public:
  17. nsWebNavigationInfo() {}
  18. NS_DECL_ISUPPORTS
  19. NS_DECL_NSIWEBNAVIGATIONINFO
  20. nsresult Init();
  21. private:
  22. ~nsWebNavigationInfo() {}
  23. // Check whether aType is supported. If this method throws, the
  24. // value of aIsSupported is not changed.
  25. nsresult IsTypeSupportedInternal(const nsCString& aType,
  26. uint32_t* aIsSupported);
  27. nsCOMPtr<nsICategoryManager> mCategoryManager;
  28. };
  29. #endif // nsWebNavigationInfo_h__