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

Unified Diff: blimp/net/blimp_message_processor.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_processor.h
diff --git a/blimp/net/blimp_message_processor.h b/blimp/net/blimp_message_processor.h
new file mode 100644
index 0000000000000000000000000000000000000000..2ab43c47016771861403dbdc9d8c06fd53ec05a3
--- /dev/null
+++ b/blimp/net/blimp_message_processor.h
@@ -0,0 +1,27 @@
+// 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_PROCESSOR_H_
+#define BLIMP_NET_BLIMP_MESSAGE_PROCESSOR_H_
+
+#include "net/base/completion_callback.h"
+
+namespace blimp {
+
+class BlimpMessage;
+
+// Interface implemented by components that process BlimpMessages.
Wez 2015/11/12 00:12:54 nit: Suggest clarifying that this super-generic in
Kevin M 2015/11/12 01:53:16 Done.
+class BlimpMessageProcessor {
+ public:
+ virtual ~BlimpMessageProcessor() {}
+
+ // Processes the BlimpMessage asynchronously.
+ // The result of the operation is returned to the caller via |callback|.
+ virtual void ProcessMessage(const BlimpMessage& message,
+ const net::CompletionCallback& callback) = 0;
+};
+
+} // namespace blimp
+
+#endif // BLIMP_NET_BLIMP_MESSAGE_PROCESSOR_H_

Powered by Google App Engine
This is Rietveld 408576698