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

Unified Diff: blimp/net/message_port_util.h

Issue 2236093002: Decouple Blimp transport output from BlimpConnections using MessagePort. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@statistics-singleton
Patch Set: Created 4 years, 4 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
Index: blimp/net/message_port_util.h
diff --git a/blimp/net/message_port_util.h b/blimp/net/message_port_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..1f18a4117b62efd180a6fc1cc43d69acc3605970
--- /dev/null
+++ b/blimp/net/message_port_util.h
@@ -0,0 +1,25 @@
+// Copyright 2016 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_MESSAGE_PORT_UTIL_H_
+#define BLIMP_NET_MESSAGE_PORT_UTIL_H_
+
+#include <memory>
+
+namespace net {
+class StreamSocket;
+} // net
+
+namespace blimp {
+
+class MessagePort;
+
+// Constructs a MessagePort object that sends and receives packets using
+// |socket|.
+std::unique_ptr<MessagePort> CreateMessagePortForStreamSocket(
+ std::unique_ptr<net::StreamSocket> socket);
+
+} // namespace blimp
+
+#endif // BLIMP_NET_MESSAGE_PORT_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698