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

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 review. 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
Index: sync/engine/traffic_recorder.h
diff --git a/sync/engine/traffic_recorder.h b/sync/engine/traffic_recorder.h
index c3bfc99828f4358a0fdbc04b79c933de706e915b..8a40be28b73cd14fe67449d737f615de8c8d8866 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,8 @@ class TrafficRecorder {
bool truncated);
TrafficRecord();
~TrafficRecord();
+
+ DictionaryValue* ToValue() const;
};
TrafficRecorder(unsigned int max_messages, unsigned int max_message_size);
@@ -50,6 +53,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_;

Powered by Google App Engine
This is Rietveld 408576698