1 From: Robert O'Callahan <rocallahan@novell.com>
2 Subject: move nsIPermission to xulrunner
4 https://bugzilla.mozilla.org/show_bug.cgi?id=315345
6 Index: netwerk/base/public/nsIPermission.idl
7 ===================================================================
8 RCS file: netwerk/base/public/nsIPermission.idl
9 diff -N netwerk/base/public/nsIPermission.idl
10 --- /dev/null 1 Jan 1970 00:00:00 -0000
11 +++ netwerk/base/public/nsIPermission.idl 10 Feb 2005 16:06:39 -0000
13 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
15 + * ***** BEGIN LICENSE BLOCK *****
16 + * Version: MPL 1.1/GPL 2.0/LGPL 2.1
18 + * The contents of this file are subject to the Mozilla Public License Version
19 + * 1.1 (the "License"); you may not use this file except in compliance with
20 + * the License. You may obtain a copy of the License at
21 + * http://www.mozilla.org/MPL/
23 + * Software distributed under the License is distributed on an "AS IS" basis,
24 + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
25 + * for the specific language governing rights and limitations under the
28 + * The Original Code is mozilla.org code.
30 + * The Initial Developer of the Original Code is
31 + * Netscape Communications, Inc.
32 + * Portions created by the Initial Developer are Copyright (C) 2001
33 + * the Initial Developer. All Rights Reserved.
37 + * Alternatively, the contents of this file may be used under the terms of
38 + * either the GNU General Public License Version 2 or later (the "GPL"), or
39 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
40 + * in which case the provisions of the GPL or the LGPL are applicable instead
41 + * of those above. If you wish to allow use of your version of this file only
42 + * under the terms of either the GPL or the LGPL, and not to allow others to
43 + * use your version of this file under the terms of the MPL, indicate your
44 + * decision by deleting the provisions above and replace them with the notice
45 + * and other provisions required by the GPL or the LGPL. If you do not delete
46 + * the provisions above, a recipient may use your version of this file under
47 + * the terms of any one of the MPL, the GPL or the LGPL.
49 + * ***** END LICENSE BLOCK ***** */
51 +#include "nsISupports.idl"
53 +[scriptable, uuid(28F16D80-157B-11d5-A542-0010A401EB10)]
56 + * This interface defines a "permission" object,
57 + * used to specify allowed/blocked objects from
58 + * user-specified sites (cookies, images etc).
61 +interface nsIPermission : nsISupports
64 + * The name of the host for which the permission is set
66 + readonly attribute AUTF8String host;
69 + * a case-sensitive ASCII string, indicating the type of permission
70 + * (e.g., "cookie", "image", etc).
71 + * This string is specified by the consumer when adding a permission
72 + * via nsIPermissionManager.
73 + * @see nsIPermissionManager
75 + readonly attribute ACString type;
78 + * The permission (see nsIPermissionManager.idl for allowed values)
80 + readonly attribute PRUint32 capability;
82 Index: netwerk/base/public/Makefile.in
83 ===================================================================
84 RCS file: /cvsroot/mozilla/netwerk/base/public/Makefile.in,v
85 retrieving revision 1.106
86 diff -u -p -r1.106 Makefile.in
87 --- netwerk/base/public/Makefile.in 25 Jul 2005 20:27:01 -0000 1.106
88 +++ netwerk/base/public/Makefile.in 7 Nov 2005 08:37:59 -0000
89 @@ -75,6 +75,7 @@ XPIDLSRCS = \
90 nsIMIMEInputStream.idl \
91 nsIPasswordManager.idl \
92 nsIPasswordManagerInternal.idl \
94 nsIPermissionManager.idl \
95 nsIProgressEventSink.idl \