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

Unified Diff: cc/base/delayed_unique_notifier.h

Issue 302003004: cc: Add HasPendingNotification to delayed unique notifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | 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 2ae6ae043adb0fe45603492e247cd94fff5ce44b..1f93416dd25a57019846136c63c94867fdff52a1 100644
--- a/cc/base/delayed_unique_notifier.h
+++ b/cc/base/delayed_unique_notifier.h
@@ -37,6 +37,9 @@ class CC_EXPORT DelayedUniqueNotifier {
// Cancel any previously scheduled runs.
void Cancel();
+ // Returns true if a notification is currently scheduled to run.
+ bool HasPendingNotification() const;
+
protected:
// Virtual for testing.
virtual base::TimeTicks Now() const;
« no previous file with comments | « no previous file | cc/base/delayed_unique_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698