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

Side by Side Diff: blimp/net/helium/helium_stream.cc

Issue 2383533003: Blimp: define HeliumTransport/HeliumStream interfaces. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "blimp/net/helium/helium_stream.h"
6
7 // Include added temporarily to get helium_transport.h to compile.
8 // Will be removed as soon as there is a legitimate dependency on
9 // helium_transport.h.
10 // TODO(kmarshall): Remove this include.
11 #include "blimp/net/helium/helium_transport.h"
12
13 namespace blimp {
14
15 HeliumStream::HeliumStream() {}
16
17 HeliumStream::~HeliumStream() {}
18
19 void HeliumStream::AddObserver(HeliumStream::Observer* observer) {
20 DCHECK(observer);
21 observers_.AddObserver(observer);
22 }
23
24 void HeliumStream::NotifyStreamDisconnected() {
25 FOR_EACH_OBSERVER(HeliumStream::Observer, observers_,
26 OnStreamDisconnected(this));
27 }
28
29 } // namespace blimp
30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698