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 "components/sync/engine_impl/syncer_proto_util.h" | 5 #include "components/sync/engine_impl/syncer_proto_util.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "components/sync/base/model_type.h" | |
12 #include "components/sync/base/time.h" | 11 #include "components/sync/base/time.h" |
13 #include "components/sync/engine_impl/cycle/sync_cycle.h" | |
14 #include "components/sync/engine_impl/net/server_connection_manager.h" | 12 #include "components/sync/engine_impl/net/server_connection_manager.h" |
15 #include "components/sync/engine_impl/syncer.h" | 13 #include "components/sync/engine_impl/syncer.h" |
16 #include "components/sync/engine_impl/syncer_types.h" | 14 #include "components/sync/engine_impl/syncer_types.h" |
17 #include "components/sync/engine_impl/traffic_logger.h" | 15 #include "components/sync/engine_impl/traffic_logger.h" |
18 #include "components/sync/protocol/sync_enums.pb.h" | 16 #include "components/sync/protocol/sync_enums.pb.h" |
19 #include "components/sync/protocol/sync_protocol_error.h" | 17 #include "components/sync/protocol/sync_protocol_error.h" |
20 #include "components/sync/syncable/directory.h" | 18 #include "components/sync/syncable/directory.h" |
21 #include "components/sync/syncable/entry.h" | 19 #include "components/sync/syncable/entry.h" |
22 #include "components/sync/syncable/syncable_proto_util.h" | 20 #include "components/sync/syncable/syncable_proto_util.h" |
23 #include "google_apis/google_api_keys.h" | 21 #include "google_apis/google_api_keys.h" |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 std::string SyncerProtoUtil::ClientToServerResponseDebugString( | 590 std::string SyncerProtoUtil::ClientToServerResponseDebugString( |
593 const ClientToServerResponse& response) { | 591 const ClientToServerResponse& response) { |
594 // Add more handlers as needed. | 592 // Add more handlers as needed. |
595 std::string output; | 593 std::string output; |
596 if (response.has_get_updates()) | 594 if (response.has_get_updates()) |
597 output.append(GetUpdatesResponseString(response.get_updates())); | 595 output.append(GetUpdatesResponseString(response.get_updates())); |
598 return output; | 596 return output; |
599 } | 597 } |
600 | 598 |
601 } // namespace syncer | 599 } // namespace syncer |
OLD | NEW |