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

Unified Diff: remoting/client/chromoting_client.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_client.h
diff --git a/remoting/client/chromoting_client.h b/remoting/client/chromoting_client.h
index 83702db93feaacccce5dd281c52cfe0238184d47..f936ddb723bd9d8ec673186379c1c4b207d1b9f6 100644
--- a/remoting/client/chromoting_client.h
+++ b/remoting/client/chromoting_client.h
@@ -4,13 +4,14 @@
// ChromotingClient is the controller for the Client implementation.
-#ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H
-#define REMOTING_CLIENT_CHROMOTING_CLIENT_H
+#ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_
+#define REMOTING_CLIENT_CHROMOTING_CLIENT_H_
#include <list>
#include "base/task.h"
#include "remoting/client/client_config.h"
+#include "remoting/client/chromoting_stats.h"
#include "remoting/client/chromoting_view.h"
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/connection_to_host.h"
@@ -53,6 +54,9 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
void Stop();
void ClientDone();
+ // Return the stats recorded by this client.
+ ChromotingStats* GetStats();
+
// Signals that the associated view may need updating.
virtual void Repaint();
@@ -125,6 +129,9 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
// safe to dispatch another message.
bool packet_being_processed_;
+ // Record the statistics of the connection.
+ ChromotingStats stats_;
+
DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
};
@@ -132,4 +139,4 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient);
-#endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H
+#endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698