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

Issue 29331737: Issue 3363 - Implement IsDocumentWhitelisted and IsElemhideWhitelisted (Closed)

Created:
Dec. 2, 2015, 1:27 p.m. by René Jeschke
Modified:
Dec. 4, 2015, 9:16 a.m.
Reviewers:
Felix Dahlke
CC:
sergei
Visibility:
Public.

Description

Issue 3363 - Implement IsDocumentWhitelisted and IsElemhideWhitelisted

Patch Set 1 #

Patch Set 2 : Fixed a typo #

Patch Set 3 : Removed unnecessary @throw doc param. #

Total comments: 16

Patch Set 4 : Addressed some issues. #

Patch Set 5 : Even more issues #

Total comments: 15

Patch Set 6 : Even more issues #

Patch Set 7 : Coerce and tests. #

Total comments: 2

Patch Set 8 : Reverted a whitespace removal #

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

Messages

Total messages: 12
René Jeschke
Dec. 2, 2015, 1:28 p.m. (2015-12-02 13:28:05 UTC) #1
Felix Dahlke
https://codereview.adblockplus.org/29331737/diff/29331744/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): https://codereview.adblockplus.org/29331737/diff/29331744/include/AdblockPlus/FilterEngine.h#newcode302 include/AdblockPlus/FilterEngine.h:302: * Checks if the supplied URL is whitelisted. "Checks ...
Dec. 2, 2015, 5:17 p.m. (2015-12-02 17:17:29 UTC) #2
Felix Dahlke
Sorry, published too soon, here's more. Can you also please add unit tests for both ...
Dec. 2, 2015, 5:27 p.m. (2015-12-02 17:27:44 UTC) #3
René Jeschke
New patch set up, unit tests follow as soon as I figure out how to ...
Dec. 2, 2015, 5:38 p.m. (2015-12-02 17:38:40 UTC) #4
Felix Dahlke
https://codereview.adblockplus.org/29331737/diff/29331750/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): https://codereview.adblockplus.org/29331737/diff/29331750/include/AdblockPlus/FilterEngine.h#newcode303 include/AdblockPlus/FilterEngine.h:303: * @param url URL of the document Nit: Seems ...
Dec. 2, 2015, 6:02 p.m. (2015-12-02 18:02:05 UTC) #5
René Jeschke
New patch set up. https://codereview.adblockplus.org/29331737/diff/29331750/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): https://codereview.adblockplus.org/29331737/diff/29331750/include/AdblockPlus/FilterEngine.h#newcode303 include/AdblockPlus/FilterEngine.h:303: * @param url URL of ...
Dec. 2, 2015, 6:09 p.m. (2015-12-02 18:09:43 UTC) #6
sergei
https://codereview.adblockplus.org/29331737/diff/29331750/src/FilterEngine.cpp File src/FilterEngine.cpp (right): https://codereview.adblockplus.org/29331737/diff/29331750/src/FilterEngine.cpp#newcode331 src/FilterEngine.cpp:331: return GetWhitelistingFilter(url, CONTENT_TYPE_DOCUMENT, documentUrls) != 0; On 2015/12/02 18:09:42, ...
Dec. 2, 2015, 6:21 p.m. (2015-12-02 18:21:57 UTC) #7
Felix Dahlke
Looks good now, don't care too much about the `!= 0` business. Mainly waiting for ...
Dec. 2, 2015, 6:50 p.m. (2015-12-02 18:50:26 UTC) #8
René Jeschke
New patch set up, tests included. https://codereview.adblockplus.org/29331737/diff/29331750/src/FilterEngine.cpp File src/FilterEngine.cpp (right): https://codereview.adblockplus.org/29331737/diff/29331750/src/FilterEngine.cpp#newcode331 src/FilterEngine.cpp:331: return GetWhitelistingFilter(url, CONTENT_TYPE_DOCUMENT, ...
Dec. 3, 2015, 11:31 a.m. (2015-12-03 11:31:20 UTC) #9
Felix Dahlke
Tests look good, just one nit now. https://codereview.adblockplus.org/29331737/diff/29331819/src/FilterEngine.cpp File src/FilterEngine.cpp (left): https://codereview.adblockplus.org/29331737/diff/29331819/src/FilterEngine.cpp#oldcode137 src/FilterEngine.cpp:137: FilterEngine::FilterEngine(JsEnginePtr jsEngine, ...
Dec. 3, 2015, 8:34 p.m. (2015-12-03 20:34:19 UTC) #10
René Jeschke
New patch set up. https://codereview.adblockplus.org/29331737/diff/29331819/src/FilterEngine.cpp File src/FilterEngine.cpp (left): https://codereview.adblockplus.org/29331737/diff/29331819/src/FilterEngine.cpp#oldcode137 src/FilterEngine.cpp:137: FilterEngine::FilterEngine(JsEnginePtr jsEngine, On 2015/12/03 20:34:18, ...
Dec. 3, 2015, 8:39 p.m. (2015-12-03 20:39:59 UTC) #11
Felix Dahlke
Dec. 4, 2015, 8:56 a.m. (2015-12-04 08:56:54 UTC) #12

Powered by Google App Engine
This is Rietveld