| 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/model/sync_data.h" | 5 #include "components/sync/model/sync_data.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 | 9 |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "components/sync/core/base_node.h" | |
| 14 #include "components/sync/protocol/proto_value_conversions.h" | 13 #include "components/sync/protocol/proto_value_conversions.h" |
| 15 #include "components/sync/protocol/sync.pb.h" | 14 #include "components/sync/protocol/sync.pb.h" |
| 15 #include "components/sync/syncable/base_node.h" |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 sync_pb::AttachmentIdProto IdToProto(const AttachmentId& attachment_id) { | 20 sync_pb::AttachmentIdProto IdToProto(const AttachmentId& attachment_id) { |
| 21 return attachment_id.GetProto(); | 21 return attachment_id.GetProto(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 AttachmentId ProtoToId(const sync_pb::AttachmentIdProto& proto) { | 24 AttachmentId ProtoToId(const sync_pb::AttachmentIdProto& proto) { |
| 25 return AttachmentId::CreateFromProto(proto); | 25 return AttachmentId::CreateFromProto(proto); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 return immutable_entity_.Get().client_defined_unique_tag(); | 219 return immutable_entity_.Get().client_defined_unique_tag(); |
| 220 } | 220 } |
| 221 | 221 |
| 222 void SyncDataRemote::GetOrDownloadAttachments( | 222 void SyncDataRemote::GetOrDownloadAttachments( |
| 223 const AttachmentIdList& attachment_ids, | 223 const AttachmentIdList& attachment_ids, |
| 224 const AttachmentService::GetOrDownloadCallback& callback) { | 224 const AttachmentService::GetOrDownloadCallback& callback) { |
| 225 attachment_service_.GetOrDownloadAttachments(attachment_ids, callback); | 225 attachment_service_.GetOrDownloadAttachments(attachment_ids, callback); |
| 226 } | 226 } |
| 227 | 227 |
| 228 } // namespace syncer | 228 } // namespace syncer |
| OLD | NEW |