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

Issue 2731283009: Swap ownership of RulesetService and the content delegate (Closed)

Created:
3 years, 9 months ago by Charlie Harrison
Modified:
3 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, engedy, jam, subresource-filter-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Swap ownership of RulesetService and the content delegate This patch also adds a getter to the content delegate on the browser process. This is in preparation for a chrome client to pull the verified ruleset dealer handle off the delegate. BUG=637415 Review-Url: https://codereview.chromium.org/2731283009 Cr-Commit-Position: refs/heads/master@{#456065} Committed: https://chromium.googlesource.com/chromium/src/+/8a923d69f115eb6c5e48f548feea0afa30d8f4b9

Patch Set 1 #

Patch Set 2 : Fix up tests #

Patch Set 3 : Swap ownership of RulesetService and the content delegate #

Total comments: 4

Patch Set 4 : rename #

Patch Set 5 : self review #

Total comments: 2

Patch Set 6 : quick review #

Patch Set 7 : fwd declare #

Total comments: 2

Patch Set 8 : engedy review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -461 lines) Patch
M chrome/browser/browser_process.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc View 1 2 3 4 chunks +18 lines, -16 lines 0 comments Download
M chrome/browser/subresource_filter/test_ruleset_publisher.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M components/subresource_filter/content/browser/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
A + components/subresource_filter/content/browser/content_ruleset_service.h View 1 2 3 4 5 6 5 chunks +21 lines, -9 lines 0 comments Download
A + components/subresource_filter/content/browser/content_ruleset_service.cc View 1 2 3 5 6 4 chunks +23 lines, -10 lines 0 comments Download
M components/subresource_filter/content/browser/content_ruleset_service_delegate.h View 1 2 3 1 chunk +0 lines, -72 lines 0 comments Download
M components/subresource_filter/content/browser/content_ruleset_service_delegate.cc View 1 2 3 1 chunk +0 lines, -96 lines 0 comments Download
D components/subresource_filter/content/browser/content_ruleset_service_delegate_unittest.cc View 1 2 3 1 chunk +0 lines, -194 lines 0 comments Download
A + components/subresource_filter/content/browser/content_ruleset_service_unittest.cc View 1 2 3 5 chunks +13 lines, -16 lines 0 comments Download
M components/subresource_filter/content/renderer/unverified_ruleset_dealer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/subresource_filter/core/browser/ruleset_service.h View 1 2 3 4 5 3 chunks +4 lines, -5 lines 0 comments Download
M components/subresource_filter/core/browser/ruleset_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/subresource_filter/core/browser/ruleset_service_unittest.cc View 1 2 3 4 5 4 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 46 (34 generated)
Charlie Harrison
Pavel, this is the idea for swapping the ownership model of the content delegate and ...
3 years, 9 months ago (2017-03-08 21:18:18 UTC) #13
Charlie Harrison
+engedy cc (FYI) The patch now includes the rename s/ContentRulesetServiceDelegate/ContentRulesetService as discussed offline.
3 years, 9 months ago (2017-03-09 16:07:58 UTC) #20
pkalinnikov
Flushing comments to patch#3. https://codereview.chromium.org/2731283009/diff/40001/components/subresource_filter/core/browser/ruleset_service.h File components/subresource_filter/core/browser/ruleset_service.h (right): https://codereview.chromium.org/2731283009/diff/40001/components/subresource_filter/core/browser/ruleset_service.h#newcode253 components/subresource_filter/core/browser/ruleset_service.h:253: // Must outlive this class. ...
3 years, 9 months ago (2017-03-09 16:09:01 UTC) #21
Charlie Harrison
Thanks, let me quickly throw up a new PS responding to those comments.
3 years, 9 months ago (2017-03-09 16:10:42 UTC) #22
Charlie Harrison
https://codereview.chromium.org/2731283009/diff/40001/components/subresource_filter/core/browser/ruleset_service.h File components/subresource_filter/core/browser/ruleset_service.h (right): https://codereview.chromium.org/2731283009/diff/40001/components/subresource_filter/core/browser/ruleset_service.h#newcode253 components/subresource_filter/core/browser/ruleset_service.h:253: // Must outlive this class. On 2017/03/09 16:09:01, pkalinnikov ...
3 years, 9 months ago (2017-03-09 16:12:44 UTC) #23
pkalinnikov
LGTM % nit and forward declaration of RulesetService to make the bots happy. https://codereview.chromium.org/2731283009/diff/80001/components/subresource_filter/content/browser/content_ruleset_service.h File ...
3 years, 9 months ago (2017-03-09 16:26:00 UTC) #28
Charlie Harrison
jochen, would you please look at //chrome? This is mostly a mechanical change. https://codereview.chromium.org/2731283009/diff/80001/components/subresource_filter/content/browser/content_ruleset_service.h File ...
3 years, 9 months ago (2017-03-09 16:35:25 UTC) #32
jochen (gone - plz use gerrit)
lgtm
3 years, 9 months ago (2017-03-10 10:44:07 UTC) #35
engedy
Thanks a lot for this refactoring, quick drive-by comment. https://codereview.chromium.org/2731283009/diff/120001/chrome/browser/subresource_filter/test_ruleset_publisher.cc File chrome/browser/subresource_filter/test_ruleset_publisher.cc (right): https://codereview.chromium.org/2731283009/diff/120001/chrome/browser/subresource_filter/test_ruleset_publisher.cc#newcode23 chrome/browser/subresource_filter/test_ruleset_publisher.cc:23: ...
3 years, 9 months ago (2017-03-10 11:57:14 UTC) #37
Charlie Harrison
Thanks all https://codereview.chromium.org/2731283009/diff/120001/chrome/browser/subresource_filter/test_ruleset_publisher.cc File chrome/browser/subresource_filter/test_ruleset_publisher.cc (right): https://codereview.chromium.org/2731283009/diff/120001/chrome/browser/subresource_filter/test_ruleset_publisher.cc#newcode23 chrome/browser/subresource_filter/test_ruleset_publisher.cc:23: : content_service_(static_cast<ContentRulesetService*>( On 2017/03/10 11:57:14, engedy (slow) ...
3 years, 9 months ago (2017-03-10 14:25:36 UTC) #40
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/2731283009/140001
3 years, 9 months ago (2017-03-10 14:26:13 UTC) #43
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 15:42:58 UTC) #46
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/8a923d69f115eb6c5e48f548feea...

Powered by Google App Engine
This is Rietveld 408576698