-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make CSPP Mojo interfaces associated to a RenderFrame or RenderProcess
We break the PhishingDetector interface into two pieces. PhishingDetector is scoped to a RenderFrame, and is used to perform classification on that frame. PhishingModelSetter is scoped to a RenderProcess, and is used to set the model for a given process. As part of this change, we create an explicit global scorer object in the renderer process. This previously existed in phishing_classifier_delegate.cc, but was in an anonymous namespace, so many other classes were maintaining references to a Scorer*, which is no longer necessary. On the browser side, we used to be pretty aggressive in setting the model. The ClientSideDetectionService would tell every ClientSideDetectionHost to change the model in every frame. Since the model was global to a process, this was a lot of unnecessary Mojo messages, none of which happen anymore. We also don't need to track all the ClientSideDetectionHosts or all the PhishingDetector receivers anymore, since we can simply get the right receiver for the needed frame. By sending models at process creation, rather than frame creation, we also hope to decrease the rate of CLASSIFIER_NOT_READY responses. Bug: 1217128 Change-Id: I5b2cab1068427903249a0ec36c98dac509a94faf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3615189 Reviewed-by: Mustafa Emre Acer <meacer@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Reviewed-by: Rohit Bhatia <bhatiarohit@google.com> Commit-Queue: Daniel Rubery <drubery@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Cr-Commit-Position: refs/heads/main@{#1001696}
- Loading branch information
Daniel Rubery
authored and
Chromium LUCI CQ
committed
May 10, 2022
1 parent
d394a18
commit 7b0479d
Showing
32 changed files
with
383 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.