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

Issue 2086213003: Data structures for Safe Browsing subresource filtering rules. (Closed)

Created:
4 years, 6 months ago by pkalinnikov
Modified:
4 years, 5 months ago
Reviewers:
engedy
CC:
battre
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Data structures for Safe Browsing subresource filtering rules. The rules are defined in two formats: 1) Protocol Buffers, which is used as the wire format for transferring the rules, and is intended to remain relatively stable. 2) FlatBuffers, which is used internally as a compact representation of the rules, and which can be memory mapped into renderer processes directly. This CL also fixes GYP files for flatc for iOS. BUG=609747 Committed: https://crrev.com/2f6afa6d80d6c2addb3b95626140327570151e14 Cr-Commit-Position: refs/heads/master@{#401563}

Patch Set 1 #

Total comments: 36

Patch Set 2 : Rephrased comments. #

Total comments: 6

Patch Set 3 : More rephrasings. #

Patch Set 4 : Fix flatc build on iOS. #

Patch Set 5 : Data structures for Subresource Filter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -9 lines) Patch
M components/subresource_filter.gypi View 1 2 3 4 3 chunks +38 lines, -2 lines 0 comments Download
M components/subresource_filter/core/common/BUILD.gn View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
A + components/subresource_filter/core/common/flat/BUILD.gn View 1 chunk +3 lines, -3 lines 0 comments Download
A components/subresource_filter/core/common/flat/rules.fbs View 1 2 1 chunk +117 lines, -0 lines 0 comments Download
A + components/subresource_filter/core/common/proto/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A components/subresource_filter/core/common/proto/rules.proto View 1 1 chunk +196 lines, -0 lines 0 comments Download
M third_party/flatbuffers/BUILD.gn View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/flatbuffers/flatbuffers.gyp View 1 2 3 4 5 chunks +8 lines, -1 line 0 comments Download
M third_party/flatbuffers/flatc.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 41 (25 generated)
pkalinnikov
PTAL.
4 years, 6 months ago (2016-06-22 10:32:04 UTC) #3
engedy
Looks great! I have done a final round of wordsmithing, plus a couple of minor ...
4 years, 6 months ago (2016-06-22 11:47:55 UTC) #4
pkalinnikov
https://codereview.chromium.org/2086213003/diff/1/components/subresource_filter/core/common/flat/rules.fbs File components/subresource_filter/core/common/flat/rules.fbs (right): https://codereview.chromium.org/2086213003/diff/1/components/subresource_filter/core/common/flat/rules.fbs#newcode17 components/subresource_filter/core/common/flat/rules.fbs:17: // Bitmask flags corresponding to various URL rule options. ...
4 years, 6 months ago (2016-06-22 12:47:58 UTC) #7
engedy
Still LGTM % just some nits in one paragraph. https://codereview.chromium.org/2086213003/diff/20001/components/subresource_filter/core/common/flat/rules.fbs File components/subresource_filter/core/common/flat/rules.fbs (right): https://codereview.chromium.org/2086213003/diff/20001/components/subresource_filter/core/common/flat/rules.fbs#newcode62 components/subresource_filter/core/common/flat/rules.fbs:62: ...
4 years, 6 months ago (2016-06-22 13:06:06 UTC) #9
pkalinnikov
https://codereview.chromium.org/2086213003/diff/20001/components/subresource_filter/core/common/flat/rules.fbs File components/subresource_filter/core/common/flat/rules.fbs (right): https://codereview.chromium.org/2086213003/diff/20001/components/subresource_filter/core/common/flat/rules.fbs#newcode62 components/subresource_filter/core/common/flat/rules.fbs:62: // (but, if some subpattern contains at least one ...
4 years, 6 months ago (2016-06-22 13:14:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086213003/40001
4 years, 6 months ago (2016-06-22 13:23:05 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/24757)
4 years, 6 months ago (2016-06-22 13:32:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086213003/60001
4 years, 6 months ago (2016-06-22 14:02:38 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/24772)
4 years, 6 months ago (2016-06-22 14:13:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086213003/80001
4 years, 6 months ago (2016-06-22 14:28:08 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/233593)
4 years, 6 months ago (2016-06-22 14:36:01 UTC) #27
engedy
Thanks for fixing the GYP files too, still LGTM. Try job failure seems to be ...
4 years, 6 months ago (2016-06-22 20:00:22 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086213003/160001
4 years, 6 months ago (2016-06-23 09:01:32 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:160001)
4 years, 6 months ago (2016-06-23 09:05:57 UTC) #38
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/2f6afa6d80d6c2addb3b95626140327570151e14 Cr-Commit-Position: refs/heads/master@{#401563}
4 years, 6 months ago (2016-06-23 09:08:15 UTC) #40
hbos_chromium
4 years, 6 months ago (2016-06-23 09:55:08 UTC) #41
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:160001) has been created in
https://codereview.chromium.org/2098453002/ by hbos@chromium.org.

The reason for reverting is: I think this is causing compile errors on
https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux....

[5683/25038] STAMP
obj/components/subresource_filter/core/common/flat/flatbuffer_gen.inputdeps.stamp
[5684/25038] ACTION
//components/subresource_filter/core/common/flat:flatbuffer_gen(//build/toolchain/linux:clang_x64)
FAILED: gen/components/subresource_filter/core/common/flat/rules_generated.h 
python ../../build/gn_run_binary.py flatc -c -o
gen/components/subresource_filter/core/common/flat
../../components/subresource_filter/core/common/flat/rules.fbs.

Powered by Google App Engine
This is Rietveld 408576698