Remove forwarding headers
bind.h, callback.h, callback_forward.h, and callback_helpers.h
moved into /base/functional/. Remove the forwarding headers as
well as do some assorted cleanup related to those headers.
Fixed: 1364441
No-Try: true
Cq-Include-Trybots: luci.chrome.try:mac-chrome,win-chrome,linux-chrome,chromeos-eve-chrome,android-internal-rel
Change-Id: I309149935f721c27f2c3373ef40627c0c1f7537b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4167020
Commit-Queue: Avi Drissman <avi@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1093705}
diff --git a/docs/callback.md b/docs/callback.md
index 64666f5..4193a85 100644
--- a/docs/callback.md
+++ b/docs/callback.md
@@ -6,8 +6,8 @@
The templated `base::{Once, Repeating}Callback<>` classes are generalized
function objects. Together with the `base::Bind{Once, Repeating}()` functions in
-base/bind.h, they provide a type-safe method for performing partial application
-of functions.
+base/functional/bind.h, they provide a type-safe method for performing partial
+application of functions.
Partial application is the process of binding a subset of a function's arguments
to produce another function that takes fewer arguments. This can be used to pass
@@ -916,7 +916,7 @@
To change this behavior, we introduce a set of argument wrappers (e.g.,
`base::Unretained()`). These are simple container templates that are passed by
value, and wrap a pointer to argument. Each helper has a comment describing it
-in base/bind.h.
+in base/functional/bind.h.
These types are passed to the `Unwrap()` functions to modify the behavior of
`base::Bind{Once, Repeating}()`. The `Unwrap()` functions change behavior by doing partial
@@ -940,5 +940,6 @@
base::BindOnce(&Foo, _1, false); // _1 is a placeholder.
```
-If you are thinking of forward declaring `base::{Once, Repeating}Callback` in your own header
-file, please include "base/callback_forward.h" instead.
+If you are thinking of forward declaring `base::{Once, Repeating}Callback` in
+your own header file, please include "base/functional/callback_forward.h"
+instead.