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

Unified Diff: remoting/protocol/protobuf_video_writer.cc

Issue 8587053: Remove event_channel() and control_channel() from Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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: remoting/protocol/protobuf_video_writer.cc
diff --git a/remoting/protocol/protobuf_video_writer.cc b/remoting/protocol/protobuf_video_writer.cc
index 10e1e53b5d3be8248c7309dea7557187becebc15..55c3a58fdf5402bbdfd8a38da398cff2399db1db 100644
--- a/remoting/protocol/protobuf_video_writer.cc
+++ b/remoting/protocol/protobuf_video_writer.cc
@@ -34,6 +34,10 @@ void ProtobufVideoWriter::Init(protocol::Session* session,
base::Bind(&ProtobufVideoWriter::OnChannelReady, base::Unretained(this)));
}
+bool ProtobufVideoWriter::is_connected() {
+ return channel_.get() != NULL;
+}
+
void ProtobufVideoWriter::OnChannelReady(net::StreamSocket* socket) {
if (!socket) {
initialized_callback_.Run(false);

Powered by Google App Engine
This is Rietveld 408576698