Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 10100009: FilterEngine API improvements (Closed)

Created:
April 4, 2013, 5:04 p.m. by Wladimir Palant
Modified:
April 10, 2013, 9:11 a.m.
Reviewers:
Felix Dahlke, Oleksandr
Visibility:
Public.

Description

Addressed FilterEngine API issues from http://codereview.adblockplus.org/10016005/

Patch Set 1 #

Total comments: 7

Patch Set 2 : Added filter access and addressed review comments #

Total comments: 5

Patch Set 3 : Replace GetElementHidingRules by a domain-specific GetElementHidingSelectors #

Total comments: 8

Patch Set 4 : Addressed review comments #

Total comments: 3

Patch Set 5 : Changed filter type enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -22 lines) Patch
M include/AdblockPlus/FilterEngine.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M shell/src/FiltersCommand.cpp View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M src/FilterEngine.cpp View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M test/FilterEngineStubs.cpp View 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 18
Wladimir Palant
April 4, 2013, 5:05 p.m. (2013-04-04 17:05:07 UTC) #1
Oleksandr
That comment and adding whitelist managing functions would be nice. http://codereview.adblockplus.org/10100009/diff/1/src/FilterEngine.cpp File src/FilterEngine.cpp (right): http://codereview.adblockplus.org/10100009/diff/1/src/FilterEngine.cpp#newcode141 ...
April 5, 2013, 7:31 a.m. (2013-04-05 07:31:51 UTC) #2
Felix Dahlke
Some small remarks, otherwise LGTM. http://codereview.adblockplus.org/10100009/diff/1/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/1/include/AdblockPlus/FilterEngine.h#newcode17 include/AdblockPlus/FilterEngine.h:17: const std::string GetProperty(const std::string& ...
April 5, 2013, 8:50 a.m. (2013-04-05 08:50:20 UTC) #3
Wladimir Palant
I've added an API to access custom filters (unstructured access should do for now). The ...
April 5, 2013, 12:15 p.m. (2013-04-05 12:15:16 UTC) #4
Wladimir Palant
I've also replaced FilterEngine::GetElementHidingRules() by FilterEngine::GetElementHidingSelectors(domain) now - the latter should call ElemHide.getSelectorsForDomain() that we ...
April 5, 2013, 12:24 p.m. (2013-04-05 12:24:24 UTC) #5
Oleksandr
http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h#newcode95 include/AdblockPlus/FilterEngine.h:95: const std::string& documentUrl); Might be just me, but based ...
April 5, 2013, 2:09 p.m. (2013-04-05 14:09:07 UTC) #6
Felix Dahlke
http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h#newcode95 include/AdblockPlus/FilterEngine.h:95: const std::string& documentUrl); On 2013/04/05 14:09:07, Oleksandr wrote: > ...
April 5, 2013, 2:20 p.m. (2013-04-05 14:20:59 UTC) #7
Oleksandr
On 2013/04/05 14:20:59, Felix H. Dahlke wrote: > http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h > File include/AdblockPlus/FilterEngine.h (right): > > ...
April 5, 2013, 2:29 p.m. (2013-04-05 14:29:45 UTC) #8
Wladimir Palant
http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h#newcode95 include/AdblockPlus/FilterEngine.h:95: const std::string& documentUrl); Actually, the idea was that filters ...
April 5, 2013, 2:31 p.m. (2013-04-05 14:31:44 UTC) #9
Felix Dahlke
http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h#newcode95 include/AdblockPlus/FilterEngine.h:95: const std::string& documentUrl); On 2013/04/05 14:31:45, Wladimir Palant wrote: ...
April 5, 2013, 2:43 p.m. (2013-04-05 14:43:55 UTC) #10
Oleksandr
http://codereview.adblockplus.org/10100009/diff/10001/src/FilterEngine.cpp File src/FilterEngine.cpp (right): http://codereview.adblockplus.org/10100009/diff/10001/src/FilterEngine.cpp#newcode200 src/FilterEngine.cpp:200: knownFilters[trimmed] = result; So I take it as no ...
April 5, 2013, 3:14 p.m. (2013-04-05 15:14:12 UTC) #11
Felix Dahlke
Looks pretty complete by now. http://codereview.adblockplus.org/10100009/diff/10001/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/10001/include/AdblockPlus/FilterEngine.h#newcode13 include/AdblockPlus/FilterEngine.h:13: class JSObject Should be ...
April 6, 2013, 5:17 a.m. (2013-04-06 05:17:05 UTC) #12
Wladimir Palant
All review comments should be addressed now. http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/6001/include/AdblockPlus/FilterEngine.h#newcode95 include/AdblockPlus/FilterEngine.h:95: const std::string& ...
April 8, 2013, 1:51 p.m. (2013-04-08 13:51:47 UTC) #13
Oleksandr
Appart from Windows specific changes needed LGTM. I will commit Windows specific stuff a bit ...
April 8, 2013, 2:07 p.m. (2013-04-08 14:07:20 UTC) #14
Felix Dahlke
http://codereview.adblockplus.org/10100009/diff/23001/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/10100009/diff/23001/include/AdblockPlus/FilterEngine.h#newcode7 include/AdblockPlus/FilterEngine.h:7: #include <tr1/memory> As of GCC 4.6 (we can assume ...
April 8, 2013, 3:03 p.m. (2013-04-08 15:03:59 UTC) #15
Wladimir Palant
I changed the filter type enum. As to the tr1/memory include, Oleksandr is already taking ...
April 9, 2013, 5:56 a.m. (2013-04-09 05:56:34 UTC) #16
Felix Dahlke
On 2013/04/09 05:56:34, Wladimir Palant wrote: > I changed the filter type enum. As to ...
April 9, 2013, 6:50 a.m. (2013-04-09 06:50:13 UTC) #17
Felix Dahlke
April 9, 2013, 6:51 a.m. (2013-04-09 06:51:58 UTC) #18
Oh, and LGTM :)

Powered by Google App Engine
This is Rietveld