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

Unified Diff: remoting/client/chromoting_stats.h

Issue 6736009: Measure bandwidth for chromoting video channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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
Index: remoting/client/chromoting_stats.h
diff --git a/remoting/client/chromoting_stats.h b/remoting/client/chromoting_stats.h
new file mode 100644
index 0000000000000000000000000000000000000000..fcd2ae2921f8621f73d5795b6235e9355ff49c81
--- /dev/null
+++ b/remoting/client/chromoting_stats.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2011 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.
+
+// ChromotingStats defines a bundle of performance counters and statistics
+// for chromoting.
+
+#ifndef REMOTING_CLIENT_CHROMOTING_STATS_H_
+#define REMOTING_CLIENT_CHROMOTING_STATS_H_
+
+#include "remoting/base/running_average.h"
+
+namespace remoting {
+
+class ChromotingStats {
+ public:
+ ChromotingStats();
+
+ TimedRunningAverage* video_bandwidth() { return &video_bandwidth_; }
+
+ private:
+ TimedRunningAverage video_bandwidth_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromotingStats);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_CLIENT_CHROMOTING_STATS_H_

Powered by Google App Engine
This is Rietveld 408576698