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

Unified Diff: sync/engine/traffic_recorder.h

Issue 9826035: [Sync] Display the client server traffic log in about:sync. (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/syncer_unittest.cc ('k') | sync/engine/traffic_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/traffic_recorder.h
diff --git a/sync/engine/traffic_recorder.h b/sync/engine/traffic_recorder.h
index 52bf8cee768159bc375b82ccbd6b8295f2f8bbc7..cfcdcc0da64d705faed93ed1d1385d346189af90 100644
--- a/sync/engine/traffic_recorder.h
+++ b/sync/engine/traffic_recorder.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
+#include "base/values.h"
#include "sync/protocol/sync.pb.h"
namespace sync_pb {
@@ -42,6 +43,7 @@ class TrafficRecorder {
bool truncated);
TrafficRecord();
~TrafficRecord();
+ DictionaryValue* ToValue() const;
};
TrafficRecorder(unsigned int max_messages, unsigned int max_message_size);
@@ -50,6 +52,7 @@ class TrafficRecorder {
void RecordClientToServerMessage(const sync_pb::ClientToServerMessage& msg);
void RecordClientToServerResponse(
const sync_pb::ClientToServerResponse& response);
+ ListValue* ToValue() const;
const std::deque<TrafficRecord>& records() {
return records_;
« no previous file with comments | « sync/engine/syncer_unittest.cc ('k') | sync/engine/traffic_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698