| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/protocol/monitored_video_stub.h" | 5 #include "remoting/protocol/monitored_video_stub.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "remoting/codec/video_decoder.h" | 9 #include "remoting/proto/video.pb.h" |
| 10 #include "remoting/codec/video_decoder_verbatim.h" | |
| 11 #include "remoting/codec/video_decoder_vpx.h" | |
| 12 | 10 |
| 13 namespace remoting { | 11 namespace remoting { |
| 14 namespace protocol { | 12 namespace protocol { |
| 15 | 13 |
| 16 MonitoredVideoStub::MonitoredVideoStub(VideoStub* video_stub, | 14 MonitoredVideoStub::MonitoredVideoStub(VideoStub* video_stub, |
| 17 base::TimeDelta connectivity_check_delay, | 15 base::TimeDelta connectivity_check_delay, |
| 18 const ChannelStateCallback& callback) | 16 const ChannelStateCallback& callback) |
| 19 : video_stub_(video_stub), | 17 : video_stub_(video_stub), |
| 20 callback_(callback), | 18 callback_(callback), |
| 21 is_connected_(false), | 19 is_connected_(false), |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 | 45 |
| 48 void MonitoredVideoStub::NotifyChannelState(bool connected) { | 46 void MonitoredVideoStub::NotifyChannelState(bool connected) { |
| 49 if (is_connected_ != connected) { | 47 if (is_connected_ != connected) { |
| 50 is_connected_ = connected; | 48 is_connected_ = connected; |
| 51 callback_.Run(is_connected_); | 49 callback_.Run(is_connected_); |
| 52 } | 50 } |
| 53 } | 51 } |
| 54 | 52 |
| 55 } // namespace protocol | 53 } // namespace protocol |
| 56 } // namespace remoting | 54 } // namespace remoting |
| OLD | NEW |