| 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. | |
| 6 // To get the log run a debug build of chrome with the flag | |
| 7 // --vmodule=traffic_logger=1. | |
| 8 | |
| 9 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_TRAFFIC_LOGGER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_TRAFFIC_LOGGER_H_ |
| 10 #define COMPONENTS_SYNC_ENGINE_IMPL_TRAFFIC_LOGGER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_TRAFFIC_LOGGER_H_ |
| 11 | 7 |
| 12 namespace sync_pb { | 8 namespace sync_pb { |
| 13 class ClientToServerResponse; | 9 class ClientToServerResponse; |
| 14 class ClientToServerMessage; | 10 class ClientToServerMessage; |
| 15 } // namespace sync_pb | 11 } // namespace sync_pb |
| 16 | 12 |
| 17 namespace syncer { | 13 namespace syncer { |
| 18 | 14 |
| 15 // This file has the functions to log all the sync related HTTP communication. |
| 16 // To get the log run a debug build of chrome with the flag |
| 17 // --vmodule=traffic_logger=1. |
| 18 |
| 19 void LogClientToServerMessage(const sync_pb::ClientToServerMessage& msg); | 19 void LogClientToServerMessage(const sync_pb::ClientToServerMessage& msg); |
| 20 void LogClientToServerResponse(const sync_pb::ClientToServerResponse& response); | 20 void LogClientToServerResponse(const sync_pb::ClientToServerResponse& response); |
| 21 | 21 |
| 22 } // namespace syncer | 22 } // namespace syncer |
| 23 | 23 |
| 24 #endif // COMPONENTS_SYNC_ENGINE_IMPL_TRAFFIC_LOGGER_H_ | 24 #endif // COMPONENTS_SYNC_ENGINE_IMPL_TRAFFIC_LOGGER_H_ |
| OLD | NEW |