summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/content/common
diff options
context:
space:
mode:
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);
-};