|
[subresource_filter] Remove some state from the driver factory
This CL removes almost all state from the driver factory.
In order to persist activation decisions (which are used for
logging metrics), we thread that data through the activation
state computing throttle, and store it in the throttle manager.
This changes the current behavior of the activation state
computing throttle, which previously was only notified when
activation is ENABLED or DRYRUN.
This CL also moves ActivationDecision into its own file, and
tweaks the safe browsing throttle to use a full-featured
throttle manager (i.e. one with a ruleset dealer) that
vends the proper navigation throttles, which is necessary
for verifying state aside from histograms.
BUG=todo
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+214 lines, -141 lines) |
Patch |
|
M |
chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc
|
View
|
1
|
2 chunks |
+5 lines, -3 lines |
1 comment
|
Download
|
|
M |
chrome/browser/subresource_filter/subresource_filter_browsertest.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.h
|
View
|
|
5 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
|
View
|
1
|
3 chunks |
+17 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/activation_state_computing_navigation_throttle_unittest.cc
|
View
|
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
|
View
|
1
|
6 chunks |
+3 lines, -38 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
|
View
|
1
|
5 chunks |
+18 lines, -26 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc
|
View
|
1
|
5 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h
|
View
|
|
4 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc
|
View
|
|
5 chunks |
+18 lines, -3 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/content_subresource_filter_throttle_manager_unittest.cc
|
View
|
|
3 chunks |
+13 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle_unittest.cc
|
View
|
1
|
12 chunks |
+58 lines, -44 lines |
0 comments
|
Download
|
|
M |
components/subresource_filter/core/common/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
components/subresource_filter/core/common/activation_decision.h
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
Total messages: 22 (12 generated)
|