| 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/syncer_proto_util.h" | 5 #include "sync/engine/syncer_proto_util.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "google_apis/google_api_keys.h" | 9 #include "google_apis/google_api_keys.h" |
| 10 #include "sync/engine/net/server_connection_manager.h" | 10 #include "sync/engine/net/server_connection_manager.h" |
| 11 #include "sync/engine/syncer.h" | 11 #include "sync/engine/syncer.h" |
| 12 #include "sync/engine/syncer_types.h" | 12 #include "sync/engine/syncer_types.h" |
| 13 #include "sync/engine/throttled_data_type_tracker.h" | 13 #include "sync/engine/throttled_data_type_tracker.h" |
| 14 #include "sync/engine/traffic_logger.h" | 14 #include "sync/engine/traffic_logger.h" |
| 15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "sync/internal_api/public/base/model_type.h" |
| 16 #include "sync/protocol/sync_enums.pb.h" | 16 #include "sync/protocol/sync_enums.pb.h" |
| 17 #include "sync/protocol/sync_protocol_error.h" | 17 #include "sync/protocol/sync_protocol_error.h" |
| 18 #include "sync/sessions/sync_session.h" | 18 #include "sync/sessions/sync_session.h" |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 std::string SyncerProtoUtil::ClientToServerResponseDebugString( | 625 std::string SyncerProtoUtil::ClientToServerResponseDebugString( |
| 626 const ClientToServerResponse& response) { | 626 const ClientToServerResponse& response) { |
| 627 // Add more handlers as needed. | 627 // Add more handlers as needed. |
| 628 std::string output; | 628 std::string output; |
| 629 if (response.has_get_updates()) | 629 if (response.has_get_updates()) |
| 630 output.append(GetUpdatesResponseString(response.get_updates())); | 630 output.append(GetUpdatesResponseString(response.get_updates())); |
| 631 return output; | 631 return output; |
| 632 } | 632 } |
| 633 | 633 |
| 634 } // namespace syncer | 634 } // namespace syncer |
| OLD | NEW |