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

Issue 7747018: Introduced the URLBlacklistManager, and wired it to various places. (Closed)

Created:
9 years, 4 months ago by Joao da Silva
Modified:
9 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Erik does not do reviews, mihaip+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr., USE chromium.org ACCOUNT
Visibility:
Public.

Description

Introduced the URLBlacklistManager, and wired it to various places. This is part of a work in progress (http://codereview.chromium.org/7716003). This patch is meant to introduce the blacklist manager, which listens to prefs changes on the UI thread (later to be managed by policies) and filters URLRequests on the IO thread. Subsequent patches will build the blacklist based on the preferences, and block URLRequests that match the list. The policy will be introduced once everything else is ready. BUG=49612 TEST=URLBlacklistManagerTest; everything still works as before Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99608

Patch Set 1 #

Total comments: 4

Patch Set 2 : Reviewed, rebased #

Total comments: 13

Patch Set 3 : Reviewed, rebased #

Patch Set 4 : Reviewed, added netlog #

Total comments: 14

Patch Set 5 : Rebased. Reviewed: use PostTaskAndReply and linked_ptrs instead of custom tasks, get WeakPtrs on IO #

Patch Set 6 : Added TODO for interaction with extensions #

Total comments: 9

Patch Set 7 : Rebased. Reviewed: don't use linked_ptrs #

Total comments: 8

Patch Set 8 : Rebased, reviewed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -5 lines) Patch
M chrome/browser/extensions/extension_webrequest_api_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 3 chunks +18 lines, -1 line 0 comments Download
A chrome/browser/policy/url_blacklist_manager.h View 1 2 3 4 5 6 7 1 chunk +121 lines, -0 lines 0 comments Download
A chrome/browser/policy/url_blacklist_manager.cc View 1 2 3 4 5 6 7 1 chunk +186 lines, -0 lines 0 comments Download
A chrome/browser/policy/url_blacklist_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +193 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 chunks +10 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Joao da Silva
Please review, thanks! @mnissler: main review @willchan: owner review for browser/net/, browser/profiles/ @phajdan.jr: owner review ...
9 years, 4 months ago (2011-08-25 14:50:36 UTC) #1
Paweł Hajdan Jr.
chrome/test LGTM I also took a look at other test files, below are my comments. ...
9 years, 4 months ago (2011-08-25 17:19:51 UTC) #2
Joao da Silva
@phajdan.jr: removed the unnecessary scoped_ptrs. Thanks for reviewing! http://codereview.chromium.org/7747018/diff/1/chrome/browser/policy/host_blacklist_manager_unittest.cc File chrome/browser/policy/host_blacklist_manager_unittest.cc (right): http://codereview.chromium.org/7747018/diff/1/chrome/browser/policy/host_blacklist_manager_unittest.cc#newcode79 chrome/browser/policy/host_blacklist_manager_unittest.cc:79: scoped_ptr<NotificationService> ...
9 years, 4 months ago (2011-08-26 09:28:30 UTC) #3
willchan no longer on Chromium
The overall structure is ok but the lifetime management needs some work. I haven't read ...
9 years, 4 months ago (2011-08-26 11:40:20 UTC) #4
Joao da Silva
@willchan: thanks for the great review! Please have another look. Nit: the class has been ...
9 years, 3 months ago (2011-08-29 11:24:25 UTC) #5
willchan no longer on Chromium
Sorry for the delay, I just got back from vacation. I've emailed you offline about ...
9 years, 3 months ago (2011-09-01 00:49:33 UTC) #6
willchan no longer on Chromium
http://codereview.chromium.org/7747018/diff/20001/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): http://codereview.chromium.org/7747018/diff/20001/chrome/browser/policy/url_blacklist_manager.cc#newcode63 chrome/browser/policy/url_blacklist_manager.cc:63: class SetBlacklistTask : public Task { Rather than write ...
9 years, 3 months ago (2011-09-01 17:05:04 UTC) #7
Joao da Silva
@willchan: thanks for another great review! Please have another look. http://codereview.chromium.org/7747018/diff/20001/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): http://codereview.chromium.org/7747018/diff/20001/chrome/browser/policy/url_blacklist_manager.cc#newcode63 ...
9 years, 3 months ago (2011-09-02 14:31:02 UTC) #8
Joao da Silva
Adding @battre to review interaction with extensions.
9 years, 3 months ago (2011-09-02 15:07:01 UTC) #9
battre
On 2011/09/02 15:07:01, Joao da Silva wrote: > Adding @battre to review interaction with extensions. ...
9 years, 3 months ago (2011-09-02 15:42:13 UTC) #10
willchan no longer on Chromium
http://codereview.chromium.org/7747018/diff/26001/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): http://codereview.chromium.org/7747018/diff/26001/chrome/browser/policy/url_blacklist_manager.cc#newcode92 chrome/browser/policy/url_blacklist_manager.cc:92: URLBlacklistManager::~URLBlacklistManager() { Can you add a DCHECK here for ...
9 years, 3 months ago (2011-09-02 16:39:26 UTC) #11
Joao da Silva
@willchan: reviewed, please have yet another look. Thanks :-) http://codereview.chromium.org/7747018/diff/26001/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): http://codereview.chromium.org/7747018/diff/26001/chrome/browser/policy/url_blacklist_manager.cc#newcode92 chrome/browser/policy/url_blacklist_manager.cc:92: ...
9 years, 3 months ago (2011-09-02 17:35:20 UTC) #12
willchan no longer on Chromium
LGTM http://codereview.chromium.org/7747018/diff/27017/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): http://codereview.chromium.org/7747018/diff/27017/chrome/browser/policy/url_blacklist_manager.cc#newcode105 chrome/browser/policy/url_blacklist_manager.cc:105: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); OIC, this is causing you crashes on ...
9 years, 3 months ago (2011-09-03 20:28:04 UTC) #13
Joao da Silva
http://codereview.chromium.org/7747018/diff/27017/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): http://codereview.chromium.org/7747018/diff/27017/chrome/browser/policy/url_blacklist_manager.cc#newcode105 chrome/browser/policy/url_blacklist_manager.cc:105: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); On 2011/09/03 20:28:04, willchan wrote: > OIC, this ...
9 years, 3 months ago (2011-09-04 17:35:52 UTC) #14
commit-bot: I haz the power
9 years, 3 months ago (2011-09-04 19:20:02 UTC) #15
Change committed as 99608

Powered by Google App Engine
This is Rietveld 408576698