extensions/cookie/nsICookiePromptService.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6
michael@0 7 /**
michael@0 8 * An interface to open a dialog to ask to permission to accept the cookie.
michael@0 9 */
michael@0 10
michael@0 11 interface nsIDOMWindow;
michael@0 12 interface nsICookie;
michael@0 13
michael@0 14 [scriptable, uuid(72f8bb14-2810-4f38-8d0d-290c5401f54e)]
michael@0 15 interface nsICookiePromptService : nsISupports
michael@0 16 {
michael@0 17 const uint32_t DENY_COOKIE = 0;
michael@0 18 const uint32_t ACCEPT_COOKIE = 1;
michael@0 19 const uint32_t ACCEPT_SESSION_COOKIE = 2;
michael@0 20
michael@0 21 /* Open a dialog that asks for permission to accept a cookie
michael@0 22 *
michael@0 23 * @param parent
michael@0 24 * @param cookie
michael@0 25 * @param hostname the host that wants to set the cookie,
michael@0 26 * not the domain: part of the cookie
michael@0 27 * @param cookiesFromHost the number of cookies there are already for this host
michael@0 28 * @param changingCookie are we changing this cookie?
michael@0 29 * @param rememberDecision should we set the matching permission for this host?
michael@0 30 * @returns 0 == deny cookie
michael@0 31 * 1 == accept cookie
michael@0 32 * 2 == accept cookie for current session
michael@0 33 */
michael@0 34
michael@0 35 long cookieDialog(in nsIDOMWindow parent,
michael@0 36 in nsICookie cookie,
michael@0 37 in ACString hostname,
michael@0 38 in long cookiesFromHost,
michael@0 39 in boolean changingCookie,
michael@0 40 out boolean rememberDecision);
michael@0 41 };
michael@0 42
michael@0 43 %{C++
michael@0 44 #define NS_COOKIEPROMPTSERVICE_CONTRACTID "@mozilla.org/embedcomp/cookieprompt-service;1"
michael@0 45 %}

mercurial