Commit 7415aba9 authored by Yuta Kitamura's avatar Yuta Kitamura Committed by Commit Bot

Allow base callbacks everywhere in Blink.

We are now mostly ready to start replacing WTF::Function with
base callbacks. This patch updates DEPS and audit-non-blink-usage.py so
we can use base callback stuff in Blink.

Bug: 771087, 763980
Change-Id: I8b41ab2c3e9e72279039685960b6dd1b558ee457
Reviewed-on: https://chromium-review.googlesource.com/807754Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarTaiju Tsuiki <tzik@chromium.org>
Commit-Queue: Yuta Kitamura <yutak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#522367}
parent 1daefa45
include_rules = [ include_rules = [
"+base/callback.h",
"+base/callback_forward.h",
"+base/debug", "+base/debug",
"+base/macros.h", "+base/macros.h",
"+base/memory/weak_ptr.h", "+base/memory/weak_ptr.h",
......
...@@ -4,8 +4,6 @@ include_rules = [ ...@@ -4,8 +4,6 @@ include_rules = [
"+base/allocator/partition_allocator/oom.h", "+base/allocator/partition_allocator/oom.h",
"+base/bind.h", "+base/bind.h",
"+base/bind_helpers.h", "+base/bind_helpers.h",
"+base/callback.h",
"+base/callback_forward.h",
"+base/feature_list.h", "+base/feature_list.h",
"+base/files", "+base/files",
"+base/guid.h", "+base/guid.h",
......
...@@ -43,6 +43,13 @@ _CONFIG = [ ...@@ -43,6 +43,13 @@ _CONFIG = [
'base::span', 'base::span',
'logging::GetVlogLevel', 'logging::GetVlogLevel',
# //base/callback.h is allowed, but you need to use WTF::Bind or
# WTF::BindRepeating to create callbacks in Blink.
'base::OnceCallback',
'base::OnceClosure',
'base::RepeatingCallback',
'base::RepeatingClosure',
# Debugging helpers from //base/debug are allowed everywhere. # Debugging helpers from //base/debug are allowed everywhere.
'base::debug::.+', 'base::debug::.+',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment