summaryrefslogtreecommitdiffstats
path: root/extensions/cookie/nsICookiePromptService.idl
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /extensions/cookie/nsICookiePromptService.idl
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'extensions/cookie/nsICookiePromptService.idl')
-rw-r--r--extensions/cookie/nsICookiePromptService.idl45
1 files changed, 45 insertions, 0 deletions
diff --git a/extensions/cookie/nsICookiePromptService.idl b/extensions/cookie/nsICookiePromptService.idl
new file mode 100644
index 000000000..163da6a26
--- /dev/null
+++ b/extensions/cookie/nsICookiePromptService.idl
@@ -0,0 +1,45 @@
+/* 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/. */
+
+#include "nsISupports.idl"
+
+/**
+ * An interface to open a dialog to ask to permission to accept the cookie.
+ */
+
+interface mozIDOMWindowProxy;
+interface nsICookie;
+
+[scriptable, uuid(65ca07c3-6241-4de1-bf41-3336470499db)]
+interface nsICookiePromptService : nsISupports
+{
+ const uint32_t DENY_COOKIE = 0;
+ const uint32_t ACCEPT_COOKIE = 1;
+ const uint32_t ACCEPT_SESSION_COOKIE = 2;
+
+ /* Open a dialog that asks for permission to accept a cookie
+ *
+ * @param parent
+ * @param cookie
+ * @param hostname the host that wants to set the cookie,
+ * not the domain: part of the cookie
+ * @param cookiesFromHost the number of cookies there are already for this host
+ * @param changingCookie are we changing this cookie?
+ * @param rememberDecision should we set the matching permission for this host?
+ * @returns 0 == deny cookie
+ * 1 == accept cookie
+ * 2 == accept cookie for current session
+ */
+
+ long cookieDialog(in mozIDOMWindowProxy parent,
+ in nsICookie cookie,
+ in ACString hostname,
+ in long cookiesFromHost,
+ in boolean changingCookie,
+ out boolean rememberDecision);
+};
+
+%{C++
+#define NS_COOKIEPROMPTSERVICE_CONTRACTID "@mozilla.org/embedcomp/cookieprompt-service;1"
+%}