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

Unified Diff: remoting/protocol/video_channel_state_observer.h

Issue 2405333002: Add remoting::protocol::NetworkStateObserver interface. (Closed)
Patch Set: address feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/webrtc_dummy_video_encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_channel_state_observer.h
diff --git a/remoting/protocol/video_channel_state_observer.h b/remoting/protocol/video_channel_state_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5efdef1ee770b338c74b62d6423eabf9bbb2744
--- /dev/null
+++ b/remoting/protocol/video_channel_state_observer.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_PROTOCOL_VIDEO_CHANNEL_STATE_OBSERVER_H_
+#define REMOTING_PROTOCOL_VIDEO_CHANNEL_STATE_OBSERVER_H_
+
+#include "base/time/time.h"
+
+namespace remoting {
+namespace protocol {
+
+class VideoChannelStateObserver {
+ public:
+ virtual void OnKeyFrameRequested() = 0;
+ virtual void OnChannelParameters(int packet_loss, base::TimeDelta rtt) = 0;
+ virtual void OnTargetBitrateChanged(int bitrate_kbps) = 0;
+
+ protected:
+ virtual ~VideoChannelStateObserver() {}
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_VIDEO_CHANNEL_STATE_OBSERVER_H_
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/webrtc_dummy_video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698