| 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 #include "sync/engine/traffic_logger.h" | 5 #include "sync/engine/traffic_logger.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 base::JSONWriter::OPTIONS_PRETTY_PRINT, | 28 base::JSONWriter::OPTIONS_PRETTY_PRINT, |
| 29 &message); | 29 &message); |
| 30 DVLOG(1) << "\n" << description << "\n" << message << "\n"; | 30 DVLOG(1) << "\n" << description << "\n" << message << "\n"; |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 void LogClientToServerMessage(const sync_pb::ClientToServerMessage& msg) { | 35 void LogClientToServerMessage(const sync_pb::ClientToServerMessage& msg) { |
| 36 LogData(msg, &ClientToServerMessageToValue, | 36 LogData(msg, &ClientToServerMessageToValue, |
| 37 "******Client To Server Message******"); | 37 "******Client To Server Message******"); |
| 38 // TODO(lipalani) : Store the data (minus specifics) | |
| 39 // in a circular buffer in memory. | |
| 40 } | 38 } |
| 41 | 39 |
| 42 void LogClientToServerResponse( | 40 void LogClientToServerResponse( |
| 43 const sync_pb::ClientToServerResponse& response) { | 41 const sync_pb::ClientToServerResponse& response) { |
| 44 LogData(response, &ClientToServerResponseToValue, | 42 LogData(response, &ClientToServerResponseToValue, |
| 45 "******Server Response******"); | 43 "******Server Response******"); |
| 46 // TODO(lipalani) : Store the data (minus specifics) | |
| 47 // in a circular buffer in memory. | |
| 48 } | 44 } |
| 49 | 45 |
| 50 } // namespace browser_sync | 46 } // namespace browser_sync |
| OLD | NEW |