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

Issue 164535: Create BlacklistManager, which will aggregate individual blacklists into one compiled one (Closed)

Created:
11 years, 4 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman, stoyan
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Create BlacklistManager, which will aggregate individual blacklists into one compiled one and maintain it. This is the first step towards shipping privacy blacklists in extensions. The next step will be to make Profile own a BlacklistManager, and make ExtensionsService a BlacklistPathsProvider. TEST=Covered by unit_tests. BUG=21541 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29135

Patch Set 1 #

Total comments: 3

Patch Set 2 : update #

Total comments: 7

Patch Set 3 : updates #

Total comments: 1

Patch Set 4 : use weak pointers #

Patch Set 5 : many fixes #

Total comments: 1

Patch Set 6 : sync with trunk, fix little things #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+589 lines, -0 lines) Patch
A chrome/browser/privacy_blacklist/blacklist_manager.h View 1 2 3 4 5 1 chunk +96 lines, -0 lines 1 comment Download
A chrome/browser/privacy_blacklist/blacklist_manager.cc View 1 2 3 4 5 1 chunk +189 lines, -0 lines 0 comments Download
A chrome/browser/privacy_blacklist/blacklist_manager_unittest.cc View 2 3 4 1 chunk +280 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/notification_type.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/blacklist_samples/host.pbl View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/blacklist_samples/other_ads.pbl View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Paweł Hajdan Jr.
This is not a finished change (no tests, lacking comments), but I wanted to make ...
11 years, 4 months ago (2009-08-14 00:17:11 UTC) #1
idanan
There are some pieces of code (Notifications) which I am very unfamiliar with, so it ...
11 years, 4 months ago (2009-08-14 17:58:27 UTC) #2
Paweł Hajdan Jr.
Patch updated. Please review. I plan to update Profile etc. in a separate patch, because ...
11 years, 3 months ago (2009-09-11 00:13:36 UTC) #3
idanan
Now that I've seen all this. I'm not sure how this gets called. Maybe you're ...
11 years, 3 months ago (2009-09-11 14:53:06 UTC) #4
Paweł Hajdan Jr.
On 2009/09/11 14:53:06, idanan wrote: > Now that I've seen all this. I'm not sure ...
11 years, 3 months ago (2009-09-11 20:03:47 UTC) #5
stoyan
http://codereview.chromium.org/164535/diff/2009/2010 File chrome/browser/privacy_blacklist/blacklist_manager.cc (right): http://codereview.chromium.org/164535/diff/2009/2010#newcode127 Line 127: RunTaskOnBackendLoop(new ReadBlacklistTask(this, compiled_blacklist_path_)); Perhaps I'm missing something but ...
11 years, 3 months ago (2009-09-12 05:53:47 UTC) #6
Paweł Hajdan Jr.
I don't want to make BlacklistManager refcounted. But indeed, I should think about shutdown - ...
11 years, 3 months ago (2009-09-14 20:43:15 UTC) #7
idanan_google.com
Hi Pawel, I took a brief look and it does not seem all the latest ...
11 years, 3 months ago (2009-09-14 20:58:51 UTC) #8
stoyan
Well, as long as you pass BlacklistManager pointer to the task (to be used as ...
11 years, 3 months ago (2009-09-14 22:34:43 UTC) #9
Paweł Hajdan Jr.
Itai, Stoyan, I think I fixed the issues. - BlacklistManager is now refcounted, and I ...
11 years, 3 months ago (2009-09-17 20:35:10 UTC) #10
stoyan
LG! (for the multithread/concurency stuff) I still think simple template specialization RunnableMethodTraits<BlacklistManager>::ReleaseCaleee(BlacklistManager* manager) { manager->loop_->ReleaseSoon(manager); ...
11 years, 3 months ago (2009-09-17 21:34:14 UTC) #11
Paweł Hajdan Jr.
Itai, ping.
11 years, 3 months ago (2009-09-18 16:28:33 UTC) #12
idanan
This is much better, I only have on must-fix comment. I do still find the ...
11 years, 3 months ago (2009-09-18 19:09:21 UTC) #13
Paweł Hajdan Jr.
Would it be ok to figure it out when I write the calling logic? For ...
11 years, 3 months ago (2009-09-18 22:45:33 UTC) #14
idanan_google.com
Well, this is a very dangerous situation because if we are not careful then we ...
11 years, 3 months ago (2009-09-21 14:19:22 UTC) #15
Paweł Hajdan Jr.
aa/stoyan, could you do a quick sanity check on the final revision of this patch? ...
11 years, 2 months ago (2009-10-15 09:49:00 UTC) #16
stoyan
11 years, 2 months ago (2009-10-15 16:22:41 UTC) #17
LGTM

http://codereview.chromium.org/164535/diff/17001/18002
File chrome/browser/privacy_blacklist/blacklist_manager.h (right):

http://codereview.chromium.org/164535/diff/17001/18002#newcode51
Line 51: virtual void Observe(NotificationType type,
move this method to private:?

Powered by Google App Engine
This is Rietveld 408576698