OLD | NEW |
| (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 "media/remoting/remoting_sink_observer.h" | |
6 | |
7 namespace media { | |
8 | |
9 RemotingSinkObserver::RemotingSinkObserver( | |
10 mojom::RemotingSourceRequest source_request, | |
11 mojom::RemoterPtr remoter) | |
12 : binding_(this, std::move(source_request)), remoter_(std::move(remoter)) {} | |
13 | |
14 RemotingSinkObserver::~RemotingSinkObserver() {} | |
15 | |
16 void RemotingSinkObserver::OnSinkAvailable( | |
17 mojom::RemotingSinkCapabilities capabilities) { | |
18 sink_capabilities_ = capabilities; | |
19 } | |
20 | |
21 void RemotingSinkObserver::OnSinkGone() { | |
22 sink_capabilities_ = mojom::RemotingSinkCapabilities::NONE; | |
23 } | |
24 | |
25 } // namespace media | |
OLD | NEW |