diff options
Diffstat (limited to 'chromium/base/callback.h')
-rw-r--r-- | chromium/base/callback.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/chromium/base/callback.h b/chromium/base/callback.h index 4aad5e8ee5d..e08f9b872b7 100644 --- a/chromium/base/callback.h +++ b/chromium/base/callback.h @@ -2,8 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// NOTE: Header files that do not require the full definition of Callback or -// Closure should #include "base/callback_forward.h" instead of this file. +// NOTE: Header files that do not require the full definition of +// base::{Once,Repeating}Callback or base::{Once,Repeating}Closure should +// #include "base/callback_forward.h" instead of this file. #ifndef BASE_CALLBACK_H_ #define BASE_CALLBACK_H_ @@ -42,7 +43,7 @@ // // Callbacks also support cancellation. A common use is binding the receiver // object as a WeakPtr<T>. If that weak pointer is invalidated, calling Run() -// will be a no-op. Note that |is_cancelled()| and |is_null()| are distinct: +// will be a no-op. Note that |IsCancelled()| and |is_null()| are distinct: // simply cancelling a callback will not also make it null. // // base::Callback is currently a type alias for base::RepeatingCallback. In the @@ -125,11 +126,6 @@ class RepeatingCallback<R(Args...)> : public internal::CallbackBaseCopyable { return !operator==(other); } - // TODO(http://crbug.com/937566): Deprecated, use == or != instead. - bool Equals(const RepeatingCallback& other) const { - return EqualsInternal(other); - } - R Run(Args... args) const & { PolymorphicInvoke f = reinterpret_cast<PolymorphicInvoke>(this->polymorphic_invoke()); |