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" | 11 #include "components/sync/base/model_type.h" |
12 #include "components/sync/base/time.h" | 12 #include "components/sync/base/time.h" |
13 #include "components/sync/engine_impl/cycle/sync_cycle.h" | 13 #include "components/sync/engine_impl/cycle/sync_cycle.h" |
14 #include "components/sync/engine_impl/net/server_connection_manager.h" | 14 #include "components/sync/engine_impl/net/server_connection_manager.h" |
15 #include "components/sync/engine_impl/syncer.h" | 15 #include "components/sync/engine_impl/syncer.h" |
16 #include "components/sync/engine_impl/syncer_types.h" | 16 #include "components/sync/engine_impl/syncer_types.h" |
17 #include "components/sync/engine_impl/traffic_logger.h" | 17 #include "components/sync/engine_impl/traffic_logger.h" |
18 #include "components/sync/protocol/sync_enums.pb.h" | 18 #include "components/sync/protocol/sync_enums.pb.h" |
19 #include "components/sync/protocol/sync_protocol_error.h" | 19 #include "components/sync/protocol/sync_protocol_error.h" |
20 #include "components/sync/syncable/directory.h" | 20 #include "components/sync/syncable/directory.h" |
21 #include "components/sync/syncable/entry.h" | 21 #include "components/sync/syncable/entry.h" |
22 #include "components/sync/syncable/syncable-inl.h" | |
23 #include "components/sync/syncable/syncable_proto_util.h" | 22 #include "components/sync/syncable/syncable_proto_util.h" |
24 #include "google_apis/google_api_keys.h" | 23 #include "google_apis/google_api_keys.h" |
25 | 24 |
26 using std::string; | 25 using std::string; |
27 using std::stringstream; | 26 using std::stringstream; |
28 using sync_pb::ClientToServerMessage; | 27 using sync_pb::ClientToServerMessage; |
29 using sync_pb::ClientToServerResponse; | 28 using sync_pb::ClientToServerResponse; |
30 | 29 |
31 namespace syncer { | 30 namespace syncer { |
32 | 31 |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 std::string SyncerProtoUtil::ClientToServerResponseDebugString( | 592 std::string SyncerProtoUtil::ClientToServerResponseDebugString( |
594 const ClientToServerResponse& response) { | 593 const ClientToServerResponse& response) { |
595 // Add more handlers as needed. | 594 // Add more handlers as needed. |
596 std::string output; | 595 std::string output; |
597 if (response.has_get_updates()) | 596 if (response.has_get_updates()) |
598 output.append(GetUpdatesResponseString(response.get_updates())); | 597 output.append(GetUpdatesResponseString(response.get_updates())); |
599 return output; | 598 return output; |
600 } | 599 } |
601 | 600 |
602 } // namespace syncer | 601 } // namespace syncer |
OLD | NEW |