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

Issue 2158833002: Factor DocumentSubresourceFilter out of SubresourceFilterAgent. (Closed)

Created:
4 years, 5 months ago by engedy
Modified:
4 years, 5 months ago
CC:
blundell+watchlist_chromium.org, darin-cc_chromium.org, droger+watchlist_chromium.org, jam, mlamouri+watch-content_chromium.org, sdefresne+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Factor DocumentSubresourceFilter out of SubresourceFilterAgent. Furthermore, add proper unit tests for both classes, and make the filter keep count of the outcomes of evaluations, which will be used for histograms in a later CL. BUG=609747 Committed: https://crrev.com/4424f552b1a5fdb8471b46c2d351c694908d85da Cr-Commit-Position: refs/heads/master@{#406536}

Patch Set 1 : Clean up for review. #

Patch Set 2 : Add missing GYP rules. #

Patch Set 3 : Workaround explicit std::vector ctor vs. copy-list-initialization. #

Patch Set 4 : Fix GN dependencies. #

Patch Set 5 : base::FilePath::AppendASCII on Windows. #

Patch Set 6 : Fix ChromeRenderViewTests. #

Total comments: 29

Patch Set 7 : Addressed comments from pkalinnikov@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+676 lines, -63 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M components/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 4 chunks +8 lines, -1 line 0 comments Download
M components/subresource_filter.gypi View 1 2 chunks +19 lines, -0 lines 0 comments Download
M components/subresource_filter/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/subresource_filter/content/renderer/BUILD.gn View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
A components/subresource_filter/content/renderer/document_subresource_filter.h View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
A components/subresource_filter/content/renderer/document_subresource_filter.cc View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A components/subresource_filter/content/renderer/document_subresource_filter_unittest.cc View 1 2 3 4 5 6 1 chunk +95 lines, -0 lines 0 comments Download
M components/subresource_filter/content/renderer/ruleset_dealer.h View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M components/subresource_filter/content/renderer/ruleset_dealer.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.h View 2 chunks +27 lines, -4 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.cc View 1 2 3 4 5 6 2 chunks +36 lines, -50 lines 0 comments Download
A components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc View 1 2 3 4 5 6 1 chunk +231 lines, -0 lines 0 comments Download
M components/subresource_filter/core/common/BUILD.gn View 1 chunk +12 lines, -0 lines 0 comments Download
M components/subresource_filter/core/common/activation_state.h View 1 chunk +1 line, -1 line 0 comments Download
A components/subresource_filter/core/common/test_ruleset_creator.h View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A components/subresource_filter/core/common/test_ruleset_creator.cc View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (24 generated)
engedy
Pavel, could you please take a first look?
4 years, 5 months ago (2016-07-18 13:12:10 UTC) #4
pkalinnikov
LGTM % comments. https://codereview.chromium.org/2158833002/diff/120001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2158833002/diff/120001/chrome/renderer/chrome_content_renderer_client.cc#newcode517 chrome/renderer/chrome_content_renderer_client.cc:517: new subresource_filter::SubresourceFilterAgent( How does this object ...
4 years, 5 months ago (2016-07-19 11:57:32 UTC) #21
engedy
https://codereview.chromium.org/2158833002/diff/120001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2158833002/diff/120001/chrome/renderer/chrome_content_renderer_client.cc#newcode517 chrome/renderer/chrome_content_renderer_client.cc:517: new subresource_filter::SubresourceFilterAgent( On 2016/07/19 11:57:32, pkalinnikov wrote: > How ...
4 years, 5 months ago (2016-07-19 12:57:29 UTC) #23
engedy
Dear OWNERs, could you please review: @Tanja --> components/subresource_filter/ @Mike --> components/test_runner/ (used for blink::WebString ...
4 years, 5 months ago (2016-07-19 13:09:28 UTC) #25
pkalinnikov
Still LGTM. https://codereview.chromium.org/2158833002/diff/120001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2158833002/diff/120001/chrome/renderer/chrome_content_renderer_client.cc#newcode517 chrome/renderer/chrome_content_renderer_client.cc:517: new subresource_filter::SubresourceFilterAgent( On 2016/07/19 12:57:28, engedy wrote: ...
4 years, 5 months ago (2016-07-19 13:45:19 UTC) #26
Mike West
Using //components/test_runner for unit test LGTM.
4 years, 5 months ago (2016-07-19 13:45:57 UTC) #27
Cait (Slow)
lgtm
4 years, 5 months ago (2016-07-19 18:26:03 UTC) #28
melandory
On 2016/07/19 18:26:03, Cait (slow) wrote: > lgtm lgtm
4 years, 5 months ago (2016-07-20 08:39:56 UTC) #29
Lei Zhang
lgtm, did not forget about this CL.
4 years, 5 months ago (2016-07-20 09:34:29 UTC) #30
engedy
On 2016/07/20 09:34:29, Lei Zhang wrote: > lgtm, did not forget about this CL. Wow, ...
4 years, 5 months ago (2016-07-20 09:41:48 UTC) #31
engedy
To clarify, the `wow` part meaning that "I sincerely hope that it is just your ...
4 years, 5 months ago (2016-07-20 09:45:17 UTC) #32
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/2158833002/140001
4 years, 5 months ago (2016-07-20 09:45:54 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 5 months ago (2016-07-20 13:01:01 UTC) #36
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 13:03:37 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4424f552b1a5fdb8471b46c2d351c694908d85da
Cr-Commit-Position: refs/heads/master@{#406536}

Powered by Google App Engine
This is Rietveld 408576698