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

Unified Diff: blimp/net/message_port.cc

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.cc
diff --git a/blimp/net/message_port.cc b/blimp/net/message_port.cc
new file mode 100644
index 0000000000000000000000000000000000000000..284608350d81cc275218885a1829eb3e0d8feaac
--- /dev/null
+++ b/blimp/net/message_port.cc
@@ -0,0 +1,20 @@
+// 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.
+
+#include "blimp/net/message_port.h"
+
+#include <utility>
+
+#include "blimp/net/packet_reader.h"
+#include "blimp/net/packet_writer.h"
+
+namespace blimp {
+
+MessagePort::MessagePort(std::unique_ptr<PacketReader> reader,
+ std::unique_ptr<PacketWriter> writer)
+ : reader_(std::move(reader)), writer_(std::move(writer)) {}
+
+MessagePort::~MessagePort() {}
+
+} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698