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

Unified Diff: sync/sessions/sync_session_context.h

Issue 9732008: [Sync] Store the past 10 traffic records in memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 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
« no previous file with comments | « sync/engine/traffic_recorder_unittest.cc ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session_context.h
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 94129ce9cee033d9b0815e1056b514852f9ece22..60e3d597670855dcc85448dea844598c264d424f 100644
--- a/sync/sessions/sync_session_context.h
+++ b/sync/sessions/sync_session_context.h
@@ -27,6 +27,7 @@
#include "base/time.h"
#include "sync/engine/model_safe_worker.h"
#include "sync/engine/syncer_types.h"
+#include "sync/engine/traffic_recorder.h"
#include "sync/sessions/debug_info_getter.h"
namespace syncable {
@@ -123,6 +124,10 @@ class SyncSessionContext {
// new throttled types this will remain constant through out the sync cycle.
syncable::ModelTypeSet GetThrottledTypes() const;
+ browser_sync::TrafficRecorder* traffic_recorder() {
+ return &traffic_recorder_;
+ }
+
private:
typedef std::map<syncable::ModelType, base::TimeTicks> UnthrottleTimes;
@@ -177,6 +182,9 @@ class SyncSessionContext {
// unthrottled.
UnthrottleTimes unthrottle_times_;
+ // TODO(lipalani): Move the creation of this to |SyncManager|.
+ browser_sync::TrafficRecorder traffic_recorder_;
+
DISALLOW_COPY_AND_ASSIGN(SyncSessionContext);
};
« no previous file with comments | « sync/engine/traffic_recorder_unittest.cc ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698