author Dave Huseby <dhuseby@mozilla.com>
Sat, 26 Mar 2016 15:07:00 +0100
changeset 295799 6cd8c193328d7cdae0686d7e5783351a09c773e6
parent 253189 f696ab47f443afe11ac064ea99c35cc8e5045e85
child 315592 299a09f24493acfbbe8b9457c36e2eccf318d787
permissions -rw-r--r--
Bug 1233885 - fix up docInfo and permission manager to use default user context. r=sicking (HEAD -> oa, refs/patches/oa/Bug_1233885) fix up docInfo and permission manager to use default user context

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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/. */

#ifndef nsPermission_h__
#define nsPermission_h__

#include "nsIPermission.h"
#include "nsString.h"


class nsPermission : public nsIPermission
  // nsISupports

  nsPermission(nsIPrincipal* aPrincipal,
               const nsACString &aType,
               uint32_t aCapability,
               uint32_t aExpireType,
               int64_t aExpireTime);

  virtual ~nsPermission() {};

  nsCOMPtr<nsIPrincipal> mPrincipal;
  nsCString mType;
  uint32_t  mCapability;
  uint32_t  mExpireType;
  int64_t   mExpireTime;

#endif // nsPermission_h__