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

Unified Diff: blimp/net/blimp_message_ack_observer.h

Issue 1429193002: Add interfaces for most major Blimp net components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Import multiplexer changes from 1434533005 Created 5 years, 1 month 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
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_

Powered by Google App Engine
This is Rietveld 408576698