2001-03-29 02:11:48 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-03-29 02:11:48 +00:00
|
|
|
|
|
|
|
#ifndef nsPermission_h__
|
|
|
|
#define nsPermission_h__
|
|
|
|
|
|
|
|
#include "nsIPermission.h"
|
2003-03-22 01:24:51 +00:00
|
|
|
#include "nsString.h"
|
2001-03-29 02:11:48 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2003-06-18 00:52:59 +00:00
|
|
|
class nsPermission : public nsIPermission
|
2003-03-22 01:24:51 +00:00
|
|
|
{
|
2001-03-29 02:11:48 +00:00
|
|
|
public:
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIPERMISSION
|
|
|
|
|
2009-10-16 21:01:04 +00:00
|
|
|
nsPermission(const nsACString &aHost,
|
2012-08-23 18:37:31 +00:00
|
|
|
uint32_t aAppId,
|
|
|
|
bool aIsInBrowserElement,
|
|
|
|
const nsACString &aType,
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t aCapability,
|
|
|
|
uint32_t aExpireType,
|
|
|
|
int64_t aExpireTime);
|
2009-10-16 21:01:04 +00:00
|
|
|
|
2014-06-23 22:40:02 +00:00
|
|
|
protected:
|
2012-08-23 18:37:31 +00:00
|
|
|
virtual ~nsPermission() {};
|
|
|
|
|
2003-03-22 01:24:51 +00:00
|
|
|
nsCString mHost;
|
2003-07-09 00:20:57 +00:00
|
|
|
nsCString mType;
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t mCapability;
|
|
|
|
uint32_t mExpireType;
|
|
|
|
int64_t mExpireTime;
|
2012-08-23 18:37:31 +00:00
|
|
|
uint32_t mAppId;
|
|
|
|
bool mIsInBrowserElement;
|
2001-03-29 02:11:48 +00:00
|
|
|
};
|
|
|
|
|
2003-06-18 00:52:59 +00:00
|
|
|
#endif // nsPermission_h__
|