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

Side by Side Diff: remoting/protocol/monitored_video_stub.cc

Issue 1288063004: Simplify FrameConsumer interface. Remove FrameProducer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/protocol/session_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/protocol/session_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698