summaryrefslogtreecommitdiffstats
path: root/toolkit/components/reputationservice/nsILoginReputation.idl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /toolkit/components/reputationservice/nsILoginReputation.idl
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/reputationservice/nsILoginReputation.idl')
-rw-r--r--toolkit/components/reputationservice/nsILoginReputation.idl47
1 files changed, 47 insertions, 0 deletions
diff --git a/toolkit/components/reputationservice/nsILoginReputation.idl b/toolkit/components/reputationservice/nsILoginReputation.idl
new file mode 100644
index 0000000000..05c53988a6
--- /dev/null
+++ b/toolkit/components/reputationservice/nsILoginReputation.idl
@@ -0,0 +1,47 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=2 et sw=2 tw=80: */
+/* 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"
+
+interface nsIURI;
+
+webidl HTMLInputElement;
+
+[scriptable, uuid(6219f9da-297e-446d-8d47-ccdd8e72a1d5)]
+interface nsILoginReputationVerdictType : nsISupports {
+
+ const unsigned long UNSPECIFIED = 0;
+ const unsigned long SAFE = 1;
+ const unsigned long LOW_REPUTATION = 2;
+ const unsigned long PHISHING = 3;
+};
+
+[scriptable, uuid(c21ffe59-595f-46c8-9052-fefb639e196e)]
+interface nsILoginReputationQuery : nsISupports {
+ readonly attribute nsIURI formURI;
+};
+
+[scriptable, uuid(b527be1e-8fbb-41d9-bee4-267a71236368)]
+interface nsILoginReputationQueryCallback : nsISupports {
+ // aVerdict should be one of the const value defined in nsILoginReputationResult
+ // interface.
+ void onComplete(in nsresult aStatus,
+ in unsigned long aVerdict);
+};
+
+[scriptable, uuid(1b3f1dfe-ce3a-486b-953e-ce5ac863eff9)]
+interface nsILoginReputationService : nsISupports {
+ void init();
+
+ // If QueryReputationAsync is called from child, it will make a IPC call
+ // to parent.
+ void queryReputationAsync(in HTMLInputElement aInput,
+ in nsILoginReputationQueryCallback aCallback);
+
+ // QueryReputation can only be called from parent
+ void queryReputation(in nsILoginReputationQuery aQuery,
+ in nsILoginReputationQueryCallback aCallback);
+};