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

Unified Diff: cc/base/delayed_unique_notifier.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « cc/BUILD.gn ('k') | cc/base/delayed_unique_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/delayed_unique_notifier.h
diff --git a/cc/base/delayed_unique_notifier.h b/cc/base/delayed_unique_notifier.h
index 59d906bb5f80781d7527e23fffe2c929167e9aa1..02051be7be85b057dbaf388b21c6b2b73df2abb3 100644
--- a/cc/base/delayed_unique_notifier.h
+++ b/cc/base/delayed_unique_notifier.h
@@ -37,6 +37,11 @@ class CC_EXPORT DelayedUniqueNotifier {
// Cancel any previously scheduled runs.
void Cancel();
+ // Cancel previously scheduled runs and prevent any new runs from starting.
+ // After calling this the DelayedUniqueNotifier will have no outstanding
+ // WeakPtrs.
+ void Shutdown();
+
// Returns true if a notification is currently scheduled to run.
bool HasPendingNotification() const;
« no previous file with comments | « cc/BUILD.gn ('k') | cc/base/delayed_unique_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698