Index: blimp/net/blimp_message_ack_observer.h |
diff --git a/blimp/net/blimp_message_ack_observer.h b/blimp/net/blimp_message_ack_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9650ea31377aeef2eab27d2d3d89eee5e50e6b56 |
--- /dev/null |
+++ b/blimp/net/blimp_message_ack_observer.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef BLIMP_NET_BLIMP_MESSAGE_ACK_OBSERVER_H_ |
+#define BLIMP_NET_BLIMP_MESSAGE_ACK_OBSERVER_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+namespace blimp { |
+ |
+// Allows objects to subscribe to message acknowledgement events. |
+class BlimpMessageAckObserver { |
+ public: |
+ // Invoked when the remote end has positively acknowledged the receipt of all |
Wez
2015/11/12 00:12:53
You'll need a trivial virtual dtor here.
Kevin M
2015/11/12 01:53:16
Done.
|
+ // messages with ID <= |message_id|. |
+ virtual void OnMessageAck(int64 message_id) = 0; |
Wez
2015/11/12 00:12:53
We'd referred to this as "checkpointing" previousl
Kevin M
2015/11/12 01:53:16
Done.
|
+}; |
+ |
+} // namespace blimp |
+ |
+#endif // BLIMP_NET_BLIMP_MESSAGE_ACK_OBSERVER_H_ |