[subresource_filter] Move activation computation to the SB throttle
This CL moves computation of the ActivationDecision / ActivationOptions
from the driver factory to the SafeBrowsing throttle. Page activation is
then forwarded to the driver factory, which forwards it to the observer
manager.
This is in preparation to remove the driver factory entirely.
BUG=708181
Review-Url: https://codereview.chromium.org/2894023002
Cr-Commit-Position: refs/heads/master@{#474644}
Committed: https://chromium.googlesource.com/chromium/src/+/27543b37fdfe82a4a1df1f0435969875b182585b
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/271482) android_cronet on ...
3 years, 7 months ago
(2017-05-18 21:40:49 UTC)
#4
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/299719)
3 years, 7 months ago
(2017-05-22 18:14:53 UTC)
#8
3 years, 7 months ago
(2017-05-23 18:02:16 UTC)
#12
Shivani would you PTAL?
shivanisha
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2894023002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode48 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:48: void OnPageActivationComputed( Need comment for this API. Is this ...
3 years, 7 months ago
(2017-05-24 19:34:07 UTC)
#13
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2894023002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode48 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:48: void OnPageActivationComputed( On 2017/05/24 19:34:06, shivanisha wrote: > Need ...
3 years, 7 months ago
(2017-05-24 20:50:12 UTC)
#15
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
File
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
(right):
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:48:
void OnPageActivationComputed(
On 2017/05/24 19:34:06, shivanisha wrote:
> Need comment for this API. Is this intended to be a SubresourceFilterObservers
> and override the function with the same name there?
Heh no this method actually notifies the observers. This patch was written
before the SubresourceFilterObserver stuff was so let me rename this method.
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:55:
ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const {
On 2017/05/24 19:34:06, shivanisha wrote:
> A TODO is probably needed here or are they getting removed in a subsequent CL?
I
> actually see a TODO in code search for this.
Yeah this CL needs to be rebased, there is currently a TODO.
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:60:
// document. Do not rely on this API, it is only temporary.
On 2017/05/24 19:34:06, shivanisha wrote:
> A TODO here for when this will be removed?
Done.
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
File
components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.h
(right):
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.h:72:
// activation |conditions| of a given configuration, except for |priority|.
On 2017/05/24 19:34:06, shivanisha wrote:
> |priority| ?
It is a member of |conditions|
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2894023002/80001
3 years, 7 months ago
(2017-05-24 20:50:34 UTC)
#16
3 years, 7 months ago
(2017-05-24 22:21:52 UTC)
#18
Dry run: This issue passed the CQ dry run.
shivanisha
On 2017/05/24 at 20:50:12, csharrison wrote: > https://codereview.chromium.org/2894023002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h > File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): > > https://codereview.chromium.org/2894023002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode48 ...
3 years, 7 months ago
(2017-05-25 12:52:46 UTC)
#19
On 2017/05/24 at 20:50:12, csharrison wrote:
>
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
> File
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
(right):
>
>
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
>
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:48:
void OnPageActivationComputed(
> On 2017/05/24 19:34:06, shivanisha wrote:
> > Need comment for this API. Is this intended to be a
SubresourceFilterObservers
> > and override the function with the same name there?
>
> Heh no this method actually notifies the observers. This patch was written
before the SubresourceFilterObserver stuff was so let me rename this method.
>
>
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
>
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:55:
ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const {
> On 2017/05/24 19:34:06, shivanisha wrote:
> > A TODO is probably needed here or are they getting removed in a subsequent
CL? I
> > actually see a TODO in code search for this.
>
> Yeah this CL needs to be rebased, there is currently a TODO.
>
>
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
>
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:60:
// document. Do not rely on this API, it is only temporary.
> On 2017/05/24 19:34:06, shivanisha wrote:
> > A TODO here for when this will be removed?
>
> Done.
>
>
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
> File
components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.h
(right):
>
>
https://codereview.chromium.org/2894023002/diff/60001/components/subresource_...
>
components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.h:72:
// activation |conditions| of a given configuration, except for |priority|.
> On 2017/05/24 19:34:06, shivanisha wrote:
> > |priority| ?
>
> It is a member of |conditions|
lgtm
Charlie Harrison
Description was changed from ========== [subresource_filter] Move activation computation to the SB throttle BUG=708181 ========== ...
3 years, 7 months ago
(2017-05-25 13:30:40 UTC)
#20
Description was changed from
==========
[subresource_filter] Move activation computation to the SB throttle
BUG=708181
==========
to
==========
[subresource_filter] Move activation computation to the SB throttle
This CL moves computation of the ActivationDecision / ActivationOptions
from the driver factory to the SafeBrowsing throttle. Page activation is
then forwarded to the driver factory, which forwards it to the observer
manager.
This is in preparation to remove the driver factory entirely.
BUG=708181
==========
Charlie Harrison
The CQ bit was checked by csharrison@chromium.org
3 years, 7 months ago
(2017-05-25 14:20:27 UTC)
#21
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1495722027328440, "parent_rev": "fb9a235342811e5c63be2ae03956c126b745fc0a", "commit_rev": "27543b37fdfe82a4a1df1f0435969875b182585b"}
3 years, 7 months ago
(2017-05-25 14:25:15 UTC)
#23
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1495722027328440,
"parent_rev": "fb9a235342811e5c63be2ae03956c126b745fc0a", "commit_rev":
"27543b37fdfe82a4a1df1f0435969875b182585b"}
commit-bot: I haz the power
Description was changed from ========== [subresource_filter] Move activation computation to the SB throttle This CL ...
3 years, 7 months ago
(2017-05-25 14:25:30 UTC)
#24
Message was sent while issue was closed.
Description was changed from
==========
[subresource_filter] Move activation computation to the SB throttle
This CL moves computation of the ActivationDecision / ActivationOptions
from the driver factory to the SafeBrowsing throttle. Page activation is
then forwarded to the driver factory, which forwards it to the observer
manager.
This is in preparation to remove the driver factory entirely.
BUG=708181
==========
to
==========
[subresource_filter] Move activation computation to the SB throttle
This CL moves computation of the ActivationDecision / ActivationOptions
from the driver factory to the SafeBrowsing throttle. Page activation is
then forwarded to the driver factory, which forwards it to the observer
manager.
This is in preparation to remove the driver factory entirely.
BUG=708181
Review-Url: https://codereview.chromium.org/2894023002
Cr-Commit-Position: refs/heads/master@{#474644}
Committed:
https://chromium.googlesource.com/chromium/src/+/27543b37fdfe82a4a1df1f043596...
==========
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/27543b37fdfe82a4a1df1f0435969875b182585b
3 years, 7 months ago
(2017-05-25 14:25:31 UTC)
#25
Issue 2894023002: [subresource_filter] Move activation computation to the SB throttle
(Closed)
Created 3 years, 7 months ago by Charlie Harrison
Modified 3 years, 7 months ago
Reviewers: shivanisha
Base URL:
Comments: 8