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

Unified Diff: components/gcm_driver/gcm_stats_recorder_impl.h

Issue 344613003: Record GCM received data message intervals in UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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: components/gcm_driver/gcm_stats_recorder_impl.h
diff --git a/components/gcm_driver/gcm_stats_recorder_impl.h b/components/gcm_driver/gcm_stats_recorder_impl.h
index 4c3c57ec55ab69f7cbf58ce778c91353c4c65fb7..f962b4fe49a34e49dad6e43127518b39c0e8066f 100644
--- a/components/gcm_driver/gcm_stats_recorder_impl.h
+++ b/components/gcm_driver/gcm_stats_recorder_impl.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/time/default_clock.h"
#include "base/time/time.h"
#include "components/gcm_driver/gcm_activity.h"
#include "google_apis/gcm/engine/connection_factory.h"
@@ -147,6 +148,9 @@ class GCMStatsRecorderImpl : public GCMStatsRecorder {
std::deque<ReceivingActivity> receiving_activities_;
std::deque<SendingActivity> sending_activities_;
+ scoped_ptr<base::Clock> clock_;
+ int64 last_data_message_received_timestamp_;
+
DISALLOW_COPY_AND_ASSIGN(GCMStatsRecorderImpl);
};
« no previous file with comments | « no previous file | components/gcm_driver/gcm_stats_recorder_impl.cc » ('j') | components/gcm_driver/gcm_stats_recorder_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698