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

Unified Diff: cc/base/delayed_unique_notifier.cc

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 | « cc/base/delayed_unique_notifier.h ('k') | cc/base/delayed_unique_notifier_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/delayed_unique_notifier.cc
diff --git a/cc/base/delayed_unique_notifier.cc b/cc/base/delayed_unique_notifier.cc
index 8086ba6538cd78fec0083edd6cd86a445806af39..c2972677da6fafcb2a4e4b935c4c8b5a0d7b179c 100644
--- a/cc/base/delayed_unique_notifier.cc
+++ b/cc/base/delayed_unique_notifier.cc
@@ -43,6 +43,10 @@ void DelayedUniqueNotifier::Cancel() {
next_notification_time_ = base::TimeTicks();
}
+bool DelayedUniqueNotifier::HasPendingNotification() const {
+ return notification_pending_ && !next_notification_time_.is_null();
+}
+
base::TimeTicks DelayedUniqueNotifier::Now() const {
return base::TimeTicks::Now();
}
« no previous file with comments | « cc/base/delayed_unique_notifier.h ('k') | cc/base/delayed_unique_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698