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

Unified Diff: blimp/net/helium/helium_stream.cc

Issue 2383533003: Blimp: define HeliumTransport/HeliumStream interfaces. (Closed)
Patch Set: Back to ReceiveMessage Created 4 years, 2 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/helium/helium_stream.cc
diff --git a/blimp/net/helium/helium_stream.cc b/blimp/net/helium/helium_stream.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3616915bbd5ed6b3b184c521a5b4bb7a66aa23e5
--- /dev/null
+++ b/blimp/net/helium/helium_stream.cc
@@ -0,0 +1,29 @@
+// 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/helium/helium_stream.h"
+
+#include <utility>
+
+#include "base/logging.h"
+
+// Include added temporarily to get helium_transport.h to compile.
+// Will be removed as soon as there is a legitimate dependency on
+// helium_transport.h.
+// TODO(kmarshall): Remove this include.
+#include "blimp/net/helium/helium_transport.h"
+
+namespace blimp {
+
+HeliumStreamBase::HeliumStreamBase() {}
+
+HeliumStreamBase::~HeliumStreamBase() {}
+
+void HeliumStreamBase::SetDelegate(
+ std::unique_ptr<HeliumStream::Delegate> delegate) {
+ DCHECK(delegate);
+ delegate_ = std::move(delegate);
+}
+
+} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698