Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef nsWebNavigationInfo_h__ |
michael@0 | 7 | #define nsWebNavigationInfo_h__ |
michael@0 | 8 | |
michael@0 | 9 | #include "nsIWebNavigationInfo.h" |
michael@0 | 10 | #include "nsCOMPtr.h" |
michael@0 | 11 | #include "nsICategoryManager.h" |
michael@0 | 12 | #include "mozilla/Attributes.h" |
michael@0 | 13 | |
michael@0 | 14 | class nsCString; |
michael@0 | 15 | |
michael@0 | 16 | // Class ID for webnavigationinfo |
michael@0 | 17 | #define NS_WEBNAVIGATION_INFO_CID \ |
michael@0 | 18 | { 0xf30bc0a2, 0x958b, 0x4287,{0xbf, 0x62, 0xce, 0x38, 0xba, 0x0c, 0x81, 0x1e}} |
michael@0 | 19 | |
michael@0 | 20 | class nsWebNavigationInfo MOZ_FINAL : public nsIWebNavigationInfo |
michael@0 | 21 | { |
michael@0 | 22 | public: |
michael@0 | 23 | nsWebNavigationInfo() {} |
michael@0 | 24 | |
michael@0 | 25 | NS_DECL_ISUPPORTS |
michael@0 | 26 | |
michael@0 | 27 | NS_DECL_NSIWEBNAVIGATIONINFO |
michael@0 | 28 | |
michael@0 | 29 | nsresult Init(); |
michael@0 | 30 | |
michael@0 | 31 | private: |
michael@0 | 32 | ~nsWebNavigationInfo() {} |
michael@0 | 33 | |
michael@0 | 34 | // Check whether aType is supported. If this method throws, the |
michael@0 | 35 | // value of aIsSupported is not changed. |
michael@0 | 36 | nsresult IsTypeSupportedInternal(const nsCString& aType, |
michael@0 | 37 | uint32_t* aIsSupported); |
michael@0 | 38 | |
michael@0 | 39 | nsCOMPtr<nsICategoryManager> mCategoryManager; |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | #endif // nsWebNavigationInfo_h__ |