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

Unified Diff: chrome/browser/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 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: chrome/browser/sync/engine/traffic_logger.h
diff --git a/chrome/browser/sync/engine/traffic_logger.h b/chrome/browser/sync/engine/traffic_logger.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd199e49c1bb69a82770e7abdaf13f407d459e07
--- /dev/null
+++ b/chrome/browser/sync/engine/traffic_logger.h
@@ -0,0 +1,22 @@
+// 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.
+
+#ifndef CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_
+#define CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_
+#pragma once
+
akalin 2012/03/14 00:17:30 Add a comment about this file, specifically that i
lipalani1 2012/03/15 00:02:13 Done.
+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_

Powered by Google App Engine
This is Rietveld 408576698