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

Unified Diff: sync/engine/traffic_logger.h

Issue 9663023: Log the sync communication that happens between client and server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For committing. 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_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/traffic_logger.h
diff --git a/sync/engine/traffic_logger.h b/sync/engine/traffic_logger.h
new file mode 100644
index 0000000000000000000000000000000000000000..5cb8ffa81b4a3abec1d301d1522ab4bbd921e315
--- /dev/null
+++ b/sync/engine/traffic_logger.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file has the functions to log all the sync related HTTP communication.
+// To get the log run a debug build of chrome with the flag
+// --vmodule=traffic_logger=1.
+
+#ifndef CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_
+#define CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_
+#pragma once
+
+namespace sync_pb {
+class ClientToServerResponse;
+class ClientToServerMessage;
+} // namespace sync_pb
+
+namespace browser_sync {
+
+void LogClientToServerMessage(const sync_pb::ClientToServerMessage& msg);
+void LogClientToServerResponse(
+ const sync_pb::ClientToServerResponse& response);
+
+} // namespace browser_sync
+
+#endif // CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_
« no previous file with comments | « sync/engine/syncer_unittest.cc ('k') | sync/engine/traffic_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698