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

Issue 2153743002: Save failure function to FlatBuffer. (Closed)

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

Description

Save failure function to FlatBuffer. Add template type parameter to KMP, fuzzy and URL pattern matching tools. The introduced IntType parameter denotes the type of the failure function elements. Use uint8_t to store failure functions of URL patterns in the FlatBuffer. BUG=609747 Committed: https://crrev.com/37fe37e9232fe2571650e8a7ab370d1ec554059a Cr-Commit-Position: refs/heads/master@{#405986}

Patch Set 1 #

Patch Set 2 : Save failure function to FlatBuffer. #

Patch Set 3 : Minor fixes. #

Total comments: 2

Patch Set 4 : Add TODO and fix the condition. #

Patch Set 5 : Fix Windows build. #

Total comments: 16

Patch Set 6 : Address comments. #

Patch Set 7 : Get rid of static_casts in DCHECKs. #

Patch Set 8 : Add newline. #

Messages

Total messages: 43 (30 generated)
pkalinnikov
PTAL.
4 years, 5 months ago (2016-07-15 11:54:24 UTC) #7
pkalinnikov
https://codereview.chromium.org/2153743002/diff/30001/components/subresource_filter/core/common/indexed_ruleset.cc File components/subresource_filter/core/common/indexed_ruleset.cc (right): https://codereview.chromium.org/2153743002/diff/30001/components/subresource_filter/core/common/indexed_ruleset.cc#newcode30 components/subresource_filter/core/common/indexed_ruleset.cc:30: if (rule.url_pattern().size() >= selfnit: replace ">=" by ">".
4 years, 5 months ago (2016-07-15 11:58:51 UTC) #10
pkalinnikov
https://codereview.chromium.org/2153743002/diff/30001/components/subresource_filter/core/common/indexed_ruleset.cc File components/subresource_filter/core/common/indexed_ruleset.cc (right): https://codereview.chromium.org/2153743002/diff/30001/components/subresource_filter/core/common/indexed_ruleset.cc#newcode30 components/subresource_filter/core/common/indexed_ruleset.cc:30: if (rule.url_pattern().size() >= On 2016/07/15 11:58:51, pkalinnikov wrote: > ...
4 years, 5 months ago (2016-07-15 12:11:35 UTC) #12
engedy
LGTM % comments. https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/fuzzy_pattern_matching.h File components/subresource_filter/core/common/fuzzy_pattern_matching.h (right): https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/fuzzy_pattern_matching.h#newcode78 components/subresource_filter/core/common/fuzzy_pattern_matching.h:78: template <typename IntType> The name `IntType` ...
4 years, 5 months ago (2016-07-18 10:47:17 UTC) #27
engedy
In the long term, I would like us to think about how we could structure ...
4 years, 5 months ago (2016-07-18 11:00:32 UTC) #28
pkalinnikov
https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/fuzzy_pattern_matching.h File components/subresource_filter/core/common/fuzzy_pattern_matching.h (right): https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/fuzzy_pattern_matching.h#newcode78 components/subresource_filter/core/common/fuzzy_pattern_matching.h:78: template <typename IntType> On 2016/07/18 10:47:16, engedy wrote: > ...
4 years, 5 months ago (2016-07-18 12:08:51 UTC) #30
engedy
Still LGTM % nit. Thanks! https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/knuth_morris_pratt.h File components/subresource_filter/core/common/knuth_morris_pratt.h (right): https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/knuth_morris_pratt.h#newcode46 components/subresource_filter/core/common/knuth_morris_pratt.h:46: DCHECK_LE(pattern.size(), On 2016/07/18 12:08:51, ...
4 years, 5 months ago (2016-07-18 12:12:46 UTC) #32
pkalinnikov
4 years, 5 months ago (2016-07-18 12:39:59 UTC) #35
pkalinnikov
https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/knuth_morris_pratt.h File components/subresource_filter/core/common/knuth_morris_pratt.h (right): https://codereview.chromium.org/2153743002/diff/90001/components/subresource_filter/core/common/knuth_morris_pratt.h#newcode46 components/subresource_filter/core/common/knuth_morris_pratt.h:46: DCHECK_LE(pattern.size(), On 2016/07/18 12:12:46, engedy wrote: > On 2016/07/18 ...
4 years, 5 months ago (2016-07-18 12:40:31 UTC) #36
engedy
Thanks, LGTM.
4 years, 5 months ago (2016-07-18 12:46:49 UTC) #37
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/2153743002/150001
4 years, 5 months ago (2016-07-18 12:47:34 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:150001)
4 years, 5 months ago (2016-07-18 14:43:45 UTC) #41
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 14:44:47 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/37fe37e9232fe2571650e8a7ab370d1ec554059a
Cr-Commit-Position: refs/heads/master@{#405986}

Powered by Google App Engine
This is Rietveld 408576698