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/api/sync_data.h" | 5 #include "sync/api/sync_data.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.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 "sync/api/attachments/attachment_service_proxy.h" | 13 #include "sync/internal_api/public/attachments/attachment_service_proxy.h" |
14 #include "sync/internal_api/public/base/model_type.h" | 14 #include "sync/internal_api/public/base/model_type.h" |
15 #include "sync/internal_api/public/base_node.h" | 15 #include "sync/internal_api/public/base_node.h" |
16 #include "sync/protocol/proto_value_conversions.h" | 16 #include "sync/protocol/proto_value_conversions.h" |
17 #include "sync/protocol/sync.pb.h" | 17 #include "sync/protocol/sync.pb.h" |
18 | 18 |
19 using syncer::Attachment; | 19 using syncer::Attachment; |
20 using syncer::AttachmentIdList; | 20 using syncer::AttachmentIdList; |
21 using syncer::AttachmentList; | 21 using syncer::AttachmentList; |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 attachment_service_.GetOrDownloadAttachments(attachment_ids, callback); | 244 attachment_service_.GetOrDownloadAttachments(attachment_ids, callback); |
245 } | 245 } |
246 | 246 |
247 void SyncDataRemote::DropAttachments( | 247 void SyncDataRemote::DropAttachments( |
248 const AttachmentIdList& attachment_ids, | 248 const AttachmentIdList& attachment_ids, |
249 const AttachmentService::DropCallback& callback) { | 249 const AttachmentService::DropCallback& callback) { |
250 attachment_service_.DropAttachments(attachment_ids, callback); | 250 attachment_service_.DropAttachments(attachment_ids, callback); |
251 } | 251 } |
252 | 252 |
253 } // namespace syncer | 253 } // namespace syncer |
OLD | NEW |