1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/extensions/cookie/nsPermission.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsPermission_h__ 1.10 +#define nsPermission_h__ 1.11 + 1.12 +#include "nsIPermission.h" 1.13 +#include "nsString.h" 1.14 + 1.15 +//////////////////////////////////////////////////////////////////////////////// 1.16 + 1.17 +class nsPermission : public nsIPermission 1.18 +{ 1.19 +public: 1.20 + // nsISupports 1.21 + NS_DECL_ISUPPORTS 1.22 + NS_DECL_NSIPERMISSION 1.23 + 1.24 + nsPermission(const nsACString &aHost, 1.25 + uint32_t aAppId, 1.26 + bool aIsInBrowserElement, 1.27 + const nsACString &aType, 1.28 + uint32_t aCapability, 1.29 + uint32_t aExpireType, 1.30 + int64_t aExpireTime); 1.31 + 1.32 + virtual ~nsPermission() {}; 1.33 + 1.34 +protected: 1.35 + nsCString mHost; 1.36 + nsCString mType; 1.37 + uint32_t mCapability; 1.38 + uint32_t mExpireType; 1.39 + int64_t mExpireTime; 1.40 + uint32_t mAppId; 1.41 + bool mIsInBrowserElement; 1.42 +}; 1.43 + 1.44 +#endif // nsPermission_h__