Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 2762403002: Wire up the ThrottleManager using the existing page activation logic (Closed)

Created:
3 years, 9 months ago by Charlie Harrison
Modified:
3 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, subresource-filter-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Wire up the ThrottleManager using the existing page activation logic BUG=637415 Review-Url: https://codereview.chromium.org/2762403002 Cr-Commit-Position: refs/heads/master@{#461754} Committed: https://chromium.googlesource.com/chromium/src/+/e985ebc9f76dd65b59efaa730f018263b64c6c24

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : get rid of bad DCHECK #

Patch Set 4 : mock activation throttlex #

Patch Set 5 : rebase #

Patch Set 6 : fix asan #

Patch Set 7 : re-rebase #

Patch Set 8 : add subframe filtering browser test #

Patch Set 9 : rebase #

Patch Set 10 : small tweaks #

Total comments: 19

Patch Set 11 : pkalinnikov review #

Total comments: 27

Patch Set 12 : engedy review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -107 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/subresource_filter/chrome_subresource_filter_client.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/subresource_filter/chrome_subresource_filter_client.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/subresource_filter/subresource_filter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +35 lines, -2 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +17 lines, -15 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +57 lines, -71 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +85 lines, -15 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +57 lines, -4 lines 0 comments Download
M components/subresource_filter/content/browser/subresource_filter_client.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (53 generated)
Charlie Harrison
melandory: This is the my WIP CL for wiring up the various navigation throttles to ...
3 years, 9 months ago (2017-03-24 14:32:24 UTC) #33
melandory
On 2017/03/24 14:32:24, Charlie Harrison wrote: > melandory: This is the my WIP CL for ...
3 years, 9 months ago (2017-03-24 16:45:36 UTC) #34
Charlie Harrison
Do you think this approach works ok in the meantime or should I just block ...
3 years, 9 months ago (2017-03-24 17:51:26 UTC) #37
melandory
On 2017/03/24 14:32:24, Charlie Harrison wrote: > melandory: This is the my WIP CL for ...
3 years, 9 months ago (2017-03-27 13:41:06 UTC) #38
melandory
On 2017/03/24 14:32:24, Charlie Harrison wrote: > melandory: This is the my WIP CL for ...
3 years, 9 months ago (2017-03-27 13:41:09 UTC) #39
Charlie Harrison
Ok, I've rebased this and it should be ready for review now. PTAL?
3 years, 8 months ago (2017-03-30 19:55:06 UTC) #43
Charlie Harrison
Hey Pavel, would you mind reviewing this one too? It is a bit subtle so ...
3 years, 8 months ago (2017-03-31 13:24:18 UTC) #48
pkalinnikov
LGTM % nits. +engedy@ to sanity check. https://codereview.chromium.org/2762403002/diff/170001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2762403002/diff/170001/chrome/browser/chrome_content_browser_client.cc#newcode3458 chrome/browser/chrome_content_browser_client.cc:3458: // These ...
3 years, 8 months ago (2017-04-03 13:40:08 UTC) #50
Charlie Harrison
Thanks Pavel. I've addressed all but one of your concerns. https://codereview.chromium.org/2762403002/diff/170001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2762403002/diff/170001/chrome/browser/chrome_content_browser_client.cc#newcode3458 ...
3 years, 8 months ago (2017-04-03 15:33:32 UTC) #52
pkalinnikov
Thanks! Please ignore that comment. https://codereview.chromium.org/2762403002/diff/170001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc (right): https://codereview.chromium.org/2762403002/diff/170001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode233 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:233: state.measure_performance = measure_performance_; On ...
3 years, 8 months ago (2017-04-03 15:51:55 UTC) #54
engedy
LGTM % comments. It's really great to see this come together, huge kudos to everyone! ...
3 years, 8 months ago (2017-04-04 11:36:53 UTC) #57
pkalinnikov
A nit to a nit. https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc File chrome/browser/subresource_filter/chrome_subresource_filter_client.cc (right): https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc#newcode20 chrome/browser/subresource_filter/chrome_subresource_filter_client.cc:20: #include "components/subresource_filter/content/browser/verified_ruleset_dealer.h" On 2017/04/04 ...
3 years, 8 months ago (2017-04-04 11:43:40 UTC) #58
engedy
https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc File chrome/browser/subresource_filter/chrome_subresource_filter_client.cc (right): https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc#newcode20 chrome/browser/subresource_filter/chrome_subresource_filter_client.cc:20: #include "components/subresource_filter/content/browser/verified_ruleset_dealer.h" On 2017/04/04 11:43:40, pkalinnikov wrote: > On ...
3 years, 8 months ago (2017-04-04 12:03:23 UTC) #59
pkalinnikov
https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc File chrome/browser/subresource_filter/chrome_subresource_filter_client.cc (right): https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc#newcode20 chrome/browser/subresource_filter/chrome_subresource_filter_client.cc:20: #include "components/subresource_filter/content/browser/verified_ruleset_dealer.h" On 2017/04/04 12:03:23, engedy wrote: > On ...
3 years, 8 months ago (2017-04-04 12:05:27 UTC) #60
Charlie Harrison
Thanks folks https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/chrome_content_browser_client.cc#newcode3472 chrome/browser/chrome_content_browser_client.cc:3472: if (auto* factory = On 2017/04/04 11:36:52, ...
3 years, 8 months ago (2017-04-04 15:54:01 UTC) #62
Charlie Harrison
Your understanding is correct afaict: Some comments: 1.) Extend the activation IPC, and refactor the ...
3 years, 8 months ago (2017-04-04 15:56:37 UTC) #64
Charlie Harrison
OK I think I understand your previous comment now, since I believe there is nothing ...
3 years, 8 months ago (2017-04-04 16:57:35 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2762403002/210001
3 years, 8 months ago (2017-04-04 16:58:42 UTC) #69
commit-bot: I haz the power
Committed patchset #12 (id:210001) as https://chromium.googlesource.com/chromium/src/+/e985ebc9f76dd65b59efaa730f018263b64c6c24
3 years, 8 months ago (2017-04-04 17:06:23 UTC) #72
engedy
https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2762403002/diff/190001/chrome/browser/chrome_content_browser_client.cc#newcode3472 chrome/browser/chrome_content_browser_client.cc:3472: if (auto* factory = On 2017/04/04 15:54:00, Charlie Harrison ...
3 years, 8 months ago (2017-04-04 17:59:57 UTC) #73
engedy
3 years, 8 months ago (2017-04-04 18:01:17 UTC) #74
Message was sent while issue was closed.
On 2017/04/04 15:56:37, Charlie Harrison wrote:
> Your understanding is correct afaict: Some comments:
> 
>  1.) Extend the activation IPC, and refactor the SubresourceFilterAgent so
> frame-level activation is no longer computed on the renderer side.
> Yep, this is implemented in the dependent PS.
> 
>  2.) Distribute remaining logic in the factory:
>    a.) Move computing and recording performance metrics to the ThrottleManager
> Sounds fine to me, or a helper class.
> 
>    b.) Move redirect chain pattern metrics to the SBActivationThrottle (?)
> Yes this was my understanding too.
> 
>    c.) Move maintaining the whitelist to somewhere else (?)
> The whitelist set will be moved to the throttle manager, and more general
> whitelist will be maintained by the ChromeClient.
> 
>  3.) Remove the driver factory (?)
> Yes, or move its functionality to some helper classes hanging off throttle
> manager.

Thanks, sounds good.

Powered by Google App Engine
This is Rietveld 408576698