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

Unified Diff: net/quic/quic_alarm.h

Issue 2164483003: relnote: Use NotifyChangedPriority when updating alarms instead of canceling and reregistering. Gua… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@11_127330079
Patch Set: Created 4 years, 5 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 | net/quic/quic_alarm.cc » ('j') | net/quic/quic_alarm.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_alarm.h
diff --git a/net/quic/quic_alarm.h b/net/quic/quic_alarm.h
index ed492cfeb009a31a3bc92547ad984904deb7a789..14b70a375364e5d7e5cc6864d722bfe48d203671 100644
--- a/net/quic/quic_alarm.h
+++ b/net/quic/quic_alarm.h
@@ -63,6 +63,11 @@ class NET_EXPORT_PRIVATE QuicAlarm {
// cancelation of the alarm.
virtual void CancelImpl() = 0;
+ // Subclasses implement this method to perform the platform-specific update of
+ // the alarm if there exists a more optimal implementation than calling
+ // CancelImpl() and SetImpl().
+ virtual void UpdateImpl();
+
// Called by subclasses when the alarm fires. Invokes the
// delegates |OnAlarm| if a delegate is set, and if the deadline
// has been exceeded. Implementations which do not remove the
« no previous file with comments | « no previous file | net/quic/quic_alarm.cc » ('j') | net/quic/quic_alarm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698