-
Notifications
You must be signed in to change notification settings - Fork 965
Unified adblock catalog callbacks #20284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
} | ||
} | ||
|
||
void AdBlockService::SourceProviderObserver::OnFilterSetCallbackLoaded( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this naming is a bit weird, maybe CreateFilterSet
and then OnFilterSetLoaded
-> OnFilterSetCreated
?
base::OnceCallback<void(rust::Box<adblock::FilterSet>*)> cb) { | ||
task_runner_->PostTaskAndReplyWithResult( | ||
FROM_HERE, | ||
base::BindOnce( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in a follow-up I think we should change the callback signature instead of adding another layer to the callbacks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can clean this up in the already planned follow-up from the original PR
657502e
to
5d2dbdf
Compare
ad93e9a
to
5c8cef5
Compare
void AddDATBufferToFilterSet(uint8_t permission_mask, | ||
DATFileDataBuffer buffer, | ||
rust::Box<adblock::FilterSet>* filter_set) { | ||
(*filter_set)->add_filter_list_with_permissions(buffer, permission_mask); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add DCHECK for non-UI thread (in a follow-up)
2f39643
to
4e8456e
Compare
4e8456e
to
0d84607
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
browser/net/* lgtm
Resolves brave/brave-browser#33245
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: