Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsISupports.idl" |
michael@0 | 8 | |
michael@0 | 9 | [scriptable, uuid(cfb08e46-193c-4be7-a467-d7775fb2a31e)] |
michael@0 | 10 | /** |
michael@0 | 11 | * This interface defines a "permission" object, |
michael@0 | 12 | * used to specify allowed/blocked objects from |
michael@0 | 13 | * user-specified sites (cookies, images etc). |
michael@0 | 14 | */ |
michael@0 | 15 | |
michael@0 | 16 | interface nsIPermission : nsISupports |
michael@0 | 17 | { |
michael@0 | 18 | /** |
michael@0 | 19 | * The name of the host for which the permission is set |
michael@0 | 20 | */ |
michael@0 | 21 | readonly attribute AUTF8String host; |
michael@0 | 22 | |
michael@0 | 23 | /** |
michael@0 | 24 | * The id of the app for which the permission is set. |
michael@0 | 25 | */ |
michael@0 | 26 | readonly attribute unsigned long appId; |
michael@0 | 27 | |
michael@0 | 28 | /** |
michael@0 | 29 | * Whether the permission has been set to a page inside a browser element. |
michael@0 | 30 | */ |
michael@0 | 31 | readonly attribute boolean isInBrowserElement; |
michael@0 | 32 | |
michael@0 | 33 | /** |
michael@0 | 34 | * a case-sensitive ASCII string, indicating the type of permission |
michael@0 | 35 | * (e.g., "cookie", "image", etc). |
michael@0 | 36 | * This string is specified by the consumer when adding a permission |
michael@0 | 37 | * via nsIPermissionManager. |
michael@0 | 38 | * @see nsIPermissionManager |
michael@0 | 39 | */ |
michael@0 | 40 | readonly attribute ACString type; |
michael@0 | 41 | |
michael@0 | 42 | /** |
michael@0 | 43 | * The permission (see nsIPermissionManager.idl for allowed values) |
michael@0 | 44 | */ |
michael@0 | 45 | readonly attribute uint32_t capability; |
michael@0 | 46 | |
michael@0 | 47 | /** |
michael@0 | 48 | * The expiration type of the permission (session, time-based or none). |
michael@0 | 49 | * Constants are EXPIRE_*, defined in nsIPermissionManager. |
michael@0 | 50 | * @see nsIPermissionManager |
michael@0 | 51 | */ |
michael@0 | 52 | readonly attribute uint32_t expireType; |
michael@0 | 53 | |
michael@0 | 54 | /** |
michael@0 | 55 | * The expiration time of the permission (milliseconds since Jan 1 1970 |
michael@0 | 56 | * 0:00:00). |
michael@0 | 57 | */ |
michael@0 | 58 | readonly attribute int64_t expireTime; |
michael@0 | 59 | }; |