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

Issue 2182493009: Framework for indexing of subresource filtering rules. (Closed)

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

Description

Framework for indexing of subresource filtering rules. Make the RulesetService capable of receiving and indexing Safe Browsing subresource filtering rules coming in through the component updater. The wire format is still TBD, but for now consists of a single rule. Also, change the directory structure so that both indexed and unindexed rules are stored under a BASE directory at "$USER_DATA_DIR/Subresource Filter/". Unindexed rules are now stored under "$BASE/Unindexed Rules/$CONTENT_VERSION/"; and indexed rules under "$BASE/Indexed Rules/$FORMAT_VERSION/$CONTENT_VERSION", instead of "$BASE/$FORMAT_VERSION_$CONTENT_VERSION". Furthermore, refactor TestRulesetCreator to facilitate testing by supplying both the indexed/unindexed representation of the testing rules, and making them available as files, file paths or blobs. BUG=609747 Committed: https://crrev.com/6cfa34f00f9631c99f8540188e9a5aab7502eebe Cr-Commit-Position: refs/heads/master@{#408615}

Patch Set 1 : Cleaned up CL for review. #

Patch Set 2 : Cleaned up CL for review. #

Patch Set 3 : Fix GN deps. #

Total comments: 23

Patch Set 4 : Addressed comments from pkalinnikov@, attempt #1 to fix tests on Win. #

Patch Set 5 : Rebase. #

Total comments: 9

Patch Set 6 : Addressed comments from thestig@ and waffles@. #

Patch Set 7 : Attempt #2 to fix tests on Windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+583 lines, -317 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer.cc View 1 2 3 4 5 5 chunks +21 lines, -30 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc View 1 2 3 4 5 8 chunks +39 lines, -23 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/subresource_filter/subresource_filter_browsertest.cc View 1 2 3 5 chunks +21 lines, -16 lines 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter_unittest.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M components/subresource_filter/core/browser/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/subresource_filter/core/browser/ruleset_service.h View 1 2 3 4 chunks +81 lines, -47 lines 0 comments Download
M components/subresource_filter/core/browser/ruleset_service.cc View 7 chunks +134 lines, -65 lines 0 comments Download
M components/subresource_filter/core/browser/ruleset_service_unittest.cc View 1 2 3 4 5 6 13 chunks +139 lines, -68 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_constants.h View 1 chunk +12 lines, -3 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_constants.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M components/subresource_filter/core/common/indexed_ruleset.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M components/subresource_filter/core/common/indexed_ruleset.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/subresource_filter/core/common/test_ruleset_creator.h View 1 2 3 2 chunks +40 lines, -20 lines 0 comments Download
M components/subresource_filter/core/common/test_ruleset_creator.cc View 1 2 3 2 chunks +65 lines, -26 lines 0 comments Download

Messages

Total messages: 41 (26 generated)
engedy
@Pavel, please review the entire CL. @Tanja, please review component_updater parts.
4 years, 4 months ago (2016-07-28 13:44:44 UTC) #8
melandory
On 2016/07/28 13:44:44, engedy wrote: > @Pavel, please review the entire CL. > @Tanja, please ...
4 years, 4 months ago (2016-07-28 14:40:07 UTC) #15
pkalinnikov
LGTM % comments. One generic question. Even though the unindexed ruleset format is supposed to ...
4 years, 4 months ago (2016-07-28 18:08:51 UTC) #18
pkalinnikov
https://codereview.chromium.org/2182493009/diff/60001/components/subresource_filter/core/common/test_ruleset_creator.h File components/subresource_filter/core/common/test_ruleset_creator.h (right): https://codereview.chromium.org/2182493009/diff/60001/components/subresource_filter/core/common/test_ruleset_creator.h#newcode30 components/subresource_filter/core/common/test_ruleset_creator.h:30: std::vector<uint8_t> contents; On 2016/07/28 18:08:52, pkalinnikov wrote: > ...
4 years, 4 months ago (2016-07-28 18:13:07 UTC) #19
engedy
So currently, if the wire format changes in backward-incompatible ways, the proto parsing will just ...
4 years, 4 months ago (2016-07-28 19:51:54 UTC) #22
engedy
@Joshua, could you please take a look at: c/b/component_updater/ @Lei, could you please take a ...
4 years, 4 months ago (2016-07-28 19:59:06 UTC) #24
Lei Zhang
lgtm https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc File chrome/browser/component_updater/subresource_filter_component_installer.cc (right): https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc#newcode78 chrome/browser/component_updater/subresource_filter_component_installer.cc:78: install_dir.Append(FILE_PATH_LITERAL("subresource_filter_rules.blob")); Should subresource_filter_rules.blob be a constant that lives ...
4 years, 4 months ago (2016-07-28 20:51:56 UTC) #25
waffles
component_updater lgtm https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc File chrome/browser/component_updater/subresource_filter_component_installer.cc (right): https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc#newcode74 chrome/browser/component_updater/subresource_filter_component_installer.cc:74: return; In what circumstance do you expect ...
4 years, 4 months ago (2016-07-28 21:58:57 UTC) #26
engedy
https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc File chrome/browser/component_updater/subresource_filter_component_installer.cc (right): https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc#newcode74 chrome/browser/component_updater/subresource_filter_component_installer.cc:74: return; On 2016/07/28 21:58:56, waffles wrote: > In what ...
4 years, 4 months ago (2016-07-28 22:17:21 UTC) #27
waffles
https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc File chrome/browser/component_updater/subresource_filter_component_installer.cc (right): https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc#newcode74 chrome/browser/component_updater/subresource_filter_component_installer.cc:74: return; On 2016/07/28 22:17:21, engedy wrote: > On 2016/07/28 ...
4 years, 4 months ago (2016-07-28 22:28:52 UTC) #28
Lei Zhang
https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc File chrome/browser/component_updater/subresource_filter_component_installer.cc (right): https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc#newcode74 chrome/browser/component_updater/subresource_filter_component_installer.cc:74: return; On 2016/07/28 22:28:52, waffles wrote: > On 2016/07/28 ...
4 years, 4 months ago (2016-07-28 22:42:26 UTC) #29
engedy
https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc File chrome/browser/component_updater/subresource_filter_component_installer.cc (right): https://codereview.chromium.org/2182493009/diff/100001/chrome/browser/component_updater/subresource_filter_component_installer.cc#newcode74 chrome/browser/component_updater/subresource_filter_component_installer.cc:74: return; On 2016/07/28 22:42:26, Lei Zhang wrote: > On ...
4 years, 4 months ago (2016-07-29 10:02:10 UTC) #30
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/2182493009/140001
4 years, 4 months ago (2016-07-29 11:14:31 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 4 months ago (2016-07-29 11:18:24 UTC) #39
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 11:20:13 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6cfa34f00f9631c99f8540188e9a5aab7502eebe
Cr-Commit-Position: refs/heads/master@{#408615}

Powered by Google App Engine
This is Rietveld 408576698