michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 nsPermission_h__ michael@0: #define nsPermission_h__ michael@0: michael@0: #include "nsIPermission.h" michael@0: #include "nsString.h" michael@0: michael@0: //////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: class nsPermission : public nsIPermission michael@0: { michael@0: public: michael@0: // nsISupports michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIPERMISSION michael@0: michael@0: nsPermission(const nsACString &aHost, michael@0: uint32_t aAppId, michael@0: bool aIsInBrowserElement, michael@0: const nsACString &aType, michael@0: uint32_t aCapability, michael@0: uint32_t aExpireType, michael@0: int64_t aExpireTime); michael@0: michael@0: virtual ~nsPermission() {}; michael@0: michael@0: protected: michael@0: nsCString mHost; michael@0: nsCString mType; michael@0: uint32_t mCapability; michael@0: uint32_t mExpireType; michael@0: int64_t mExpireTime; michael@0: uint32_t mAppId; michael@0: bool mIsInBrowserElement; michael@0: }; michael@0: michael@0: #endif // nsPermission_h__