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

Issue 2670543002: Introduce VerifiedRuleset and its async Handle. (Closed)

Created:
3 years, 10 months ago by pkalinnikov
Modified:
3 years, 10 months ago
Reviewers:
engedy, melandory
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce VerifiedRuleset and its async Handle. VerifiedRuleset (VR) holds a reference to MemoryMappedRuleset, initially empty, and provides access to it. It lives on the same SequencedTaskRunner as a VerifiedRulesetDealer (VRD) owned by a VRD::Handle, which is used to create a VR::Handle. VR is owned, asynchronously accessed and destroyed by a VR::Handle, its UI-thread counterpart. The VR will usually live on a blocking pool thread because this is where a VRD would normally live. BUG=637415 Review-Url: https://codereview.chromium.org/2670543002 Cr-Commit-Position: refs/heads/master@{#447782} Committed: https://chromium.googlesource.com/chromium/src/+/f2774bfe725f433421242e887269aa093bfe405a

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address comments; fix memory leak in tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -5 lines) Patch
M components/subresource_filter/content/browser/verified_ruleset_dealer.h View 1 2 chunks +62 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/verified_ruleset_dealer.cc View 1 2 chunks +35 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/verified_ruleset_dealer_unittest.cc View 1 2 chunks +221 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
pkalinnikov
Initial PTAL.
3 years, 10 months ago (2017-02-01 12:01:53 UTC) #4
pkalinnikov
+Tanja to reviewers.
3 years, 10 months ago (2017-02-01 13:04:15 UTC) #6
engedy
LGTM % minor comments. Thanks! https://codereview.chromium.org/2670543002/diff/1/components/subresource_filter/content/browser/verified_ruleset_dealer.h File components/subresource_filter/content/browser/verified_ruleset_dealer.h (right): https://codereview.chromium.org/2670543002/diff/1/components/subresource_filter/content/browser/verified_ruleset_dealer.h#newcode71 components/subresource_filter/content/browser/verified_ruleset_dealer.h:71: base::SequencedTaskRunner* task_runner() { return ...
3 years, 10 months ago (2017-02-01 13:30:32 UTC) #7
pkalinnikov
Thanks. Will update the CL description shortly. https://codereview.chromium.org/2670543002/diff/1/components/subresource_filter/content/browser/verified_ruleset_dealer.h File components/subresource_filter/content/browser/verified_ruleset_dealer.h (right): https://codereview.chromium.org/2670543002/diff/1/components/subresource_filter/content/browser/verified_ruleset_dealer.h#newcode71 components/subresource_filter/content/browser/verified_ruleset_dealer.h:71: base::SequencedTaskRunner* task_runner() ...
3 years, 10 months ago (2017-02-01 17:32:13 UTC) #12
engedy
https://codereview.chromium.org/2670543002/diff/1/components/subresource_filter/content/browser/verified_ruleset_dealer_unittest.cc File components/subresource_filter/content/browser/verified_ruleset_dealer_unittest.cc (right): https://codereview.chromium.org/2670543002/diff/1/components/subresource_filter/content/browser/verified_ruleset_dealer_unittest.cc#newcode402 components/subresource_filter/content/browser/verified_ruleset_dealer_unittest.cc:402: std::unique_ptr<VerifiedRuleset::Handle> NewRulesetHandle() { On 2017/02/01 17:32:13, pkalinnikov wrote: > ...
3 years, 10 months ago (2017-02-01 17:36:05 UTC) #13
melandory
On 2017/02/01 17:36:05, engedy wrote: > https://codereview.chromium.org/2670543002/diff/1/components/subresource_filter/content/browser/verified_ruleset_dealer_unittest.cc > File > components/subresource_filter/content/browser/verified_ruleset_dealer_unittest.cc > (right): > > ...
3 years, 10 months ago (2017-02-02 10:14:32 UTC) #18
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/2670543002/20001
3 years, 10 months ago (2017-02-02 16:57:48 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 17:03:24 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f2774bfe725f433421242e887269...

Powered by Google App Engine
This is Rietveld 408576698