author Steve Fink <sfink@mozilla.com>
Thu, 24 Apr 2014 14:40:57 -0700
changeset 157145 851f136057577387ed70deb219bc507c9e5d2d7a
parent 106606 789055abc89d6f8ec91ac54b4c46c5c836829880
permissions -rw-r--r--
Bug 999755 - Add neuter() variants to vary data pointer. Also fold in the followup patch in bug 1002864, to ignore disposition when buffer contents can't be changed. r=Waldo, r=sfink, a=bajaj

/* -*- 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(const nsACString &aHost,
               uint32_t aAppId,
               bool aIsInBrowserElement,
               const nsACString &aType,
               uint32_t aCapability,
               uint32_t aExpireType,
               int64_t aExpireTime);

  virtual ~nsPermission() {};

  nsCString mHost;
  nsCString mType;
  uint32_t  mCapability;
  uint32_t  mExpireType;
  int64_t   mExpireTime;
  uint32_t  mAppId;
  bool      mIsInBrowserElement;

#endif // nsPermission_h__