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

Unified Diff: third_party/WebKit/Source/wtf/Functional.h

Issue 2327793002: Expose base::Callback::IsCancelled via WTF::Function (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/FunctionalTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Functional.h
diff --git a/third_party/WebKit/Source/wtf/Functional.h b/third_party/WebKit/Source/wtf/Functional.h
index 97d156086f32ca4bcd6157581821fc1431e82daf..d081c8beed52307a49c6c452e2fee2bfb806ea8d 100644
--- a/third_party/WebKit/Source/wtf/Functional.h
+++ b/third_party/WebKit/Source/wtf/Functional.h
@@ -204,6 +204,11 @@ public:
return m_callback.Run(std::forward<Args>(args)...);
}
+ bool isCancelled() const
+ {
+ return m_callback.IsCancelled();
+ }
+
friend base::Callback<R(Args...)> convertToBaseCallback(std::unique_ptr<Function> function)
{
return std::move(function->m_callback);
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/FunctionalTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698