traffic_logger.h 796 B

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