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

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

Issue 2383533003: Blimp: define HeliumTransport/HeliumStream interfaces. (Closed)
Patch Set: Created 4 years, 3 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..e059c6e4d9b713f2b6cd714285ca8793bd335e57
--- /dev/null
+++ b/blimp/net/helium/helium_stream.cc
@@ -0,0 +1,30 @@
+// 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 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 {
+
+HeliumStream::HeliumStream() {}
+
+HeliumStream::~HeliumStream() {}
+
+void HeliumStream::AddObserver(HeliumStream::Observer* observer) {
+ DCHECK(observer);
+ observers_.AddObserver(observer);
+}
+
+void HeliumStream::NotifyStreamDisconnected() {
+ FOR_EACH_OBSERVER(HeliumStream::Observer, observers_,
+ OnStreamDisconnected(this));
+}
+
+} // namespace blimp
+

Powered by Google App Engine
This is Rietveld 408576698