summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/content/common
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/safe_browsing/content/common
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/safe_browsing/content/common')
-rw-r--r--chromium/components/safe_browsing/content/common/safe_browsing.mojom13
1 files changed, 6 insertions, 7 deletions
diff --git a/chromium/components/safe_browsing/content/common/safe_browsing.mojom b/chromium/components/safe_browsing/content/common/safe_browsing.mojom
index a5cc71ad13e..72c21819f36 100644
--- a/chromium/components/safe_browsing/content/common/safe_browsing.mojom
+++ b/chromium/components/safe_browsing/content/common/safe_browsing.mojom
@@ -118,7 +118,13 @@ enum PhishingDetectorResult {
};
[EnableIf=full_safe_browsing]
+// Interface for setting the CSD model and to start phishing classification.
interface PhishingDetector {
+ // A classification model for client-side phishing detection.
+ // The string is an encoded safe_browsing::ClientSideModel protocol buffer, or
+ // empty to disable client-side phishing detection for this renderer.
+ SetPhishingModel(string model);
+
// Tells the renderer to begin phishing detection for the given toplevel URL
// which it has started loading. Returns the serialized request proto and a
// |result| enum to indicate failure. If the URL is phishing the request proto
@@ -126,10 +132,3 @@ interface PhishingDetector {
StartPhishingDetection(url.mojom.Url url)
=> (PhishingDetectorResult result, string request_proto);
};
-
-interface PhishingModelSetter {
- // A classification model for client-side phishing detection.
- // The string is an encoded safe_browsing::ClientSideModel protocol buffer, or
- // empty to disable client-side phishing detection for this renderer.
- SetPhishingModel(string model);
-};