| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has the functions to log all the sync related HTTP communication. | 5 // This file has the functions to log all the sync related HTTP communication. |
| 6 // To get the log run a debug build of chrome with the flag | 6 // To get the log run a debug build of chrome with the flag |
| 7 // --vmodule=traffic_logger=1. | 7 // --vmodule=traffic_logger=1. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_ | 9 #ifndef CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_ |
| 10 #define CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_ | 10 #define CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_ |
| 11 #pragma once | 11 #pragma once |
| 12 | 12 |
| 13 namespace sync_pb { | 13 namespace sync_pb { |
| 14 class ClientToServerResponse; | 14 class ClientToServerResponse; |
| 15 class ClientToServerMessage; | 15 class ClientToServerMessage; |
| 16 } // namespace sync_pb | 16 } // namespace sync_pb |
| 17 | 17 |
| 18 namespace csync { | 18 namespace syncer { |
| 19 | 19 |
| 20 void LogClientToServerMessage(const sync_pb::ClientToServerMessage& msg); | 20 void LogClientToServerMessage(const sync_pb::ClientToServerMessage& msg); |
| 21 void LogClientToServerResponse( | 21 void LogClientToServerResponse( |
| 22 const sync_pb::ClientToServerResponse& response); | 22 const sync_pb::ClientToServerResponse& response); |
| 23 | 23 |
| 24 } // namespace csync | 24 } // namespace syncer |
| 25 | 25 |
| 26 #endif // CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_ | 26 #endif // CHROME_BROWSER_SYNC_ENGINE_TRAFFIC_LOGGER_H_ |
| OLD | NEW |