Index: blimp/client/session/blimp_client_session.h |
diff --git a/blimp/client/session/blimp_client_session.h b/blimp/client/session/blimp_client_session.h |
index 71b4d3d0cf6b953ea465672811788d050b10311a..afa17da8f00c640cd55ca08f95af25006d9680e2 100644 |
--- a/blimp/client/session/blimp_client_session.h |
+++ b/blimp/client/session/blimp_client_session.h |
@@ -13,6 +13,7 @@ |
#include "base/threading/thread.h" |
#include "blimp/client/session/assignment_source.h" |
#include "blimp/common/proto/blimp_message.pb.h" |
+#include "blimp/net/blimp_connection_statistics.h" |
Kevin M
2016/05/24 01:02:00
Use a prototype for BlimpConnectionStatistics and
shaktisahu
2016/05/24 21:02:44
Done.
|
#include "blimp/net/blimp_message_processor.h" |
namespace net { |
@@ -70,6 +71,8 @@ class BlimpClientSession : public NetworkEventObserver { |
RenderWidgetFeature* GetRenderWidgetFeature() const; |
SettingsFeature* GetSettingsFeature() const; |
+ BlimpConnectionStatistics* GetBlimpConnectionStatistics() const; |
+ |
// The AssignmentCallback for when an assignment is ready. This will trigger |
// a connection to the engine. |
virtual void ConnectWithAssignment(AssignmentSource::Result result, |
@@ -101,6 +104,10 @@ class BlimpClientSession : public NetworkEventObserver { |
// Connect() to get a valid assignment and later connect to the engine. |
std::unique_ptr<AssignmentSource> assignment_source_; |
+ // Collects details of network, such as number of commits and bytes |
+ // transferred over network. |
+ std::unique_ptr<BlimpConnectionStatistics> blimp_connection_statistics_; |
+ |
// Container struct for network components. |
// Must be deleted on the IO thread. |
std::unique_ptr<ClientNetworkComponents> net_components_; |