| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ | 6 #define COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "components/sync/model/attachments/attachment.h" | 12 #include "components/sync/model/attachments/attachment.h" |
| 13 | 13 |
| 14 namespace syncer { | 14 namespace syncer { |
| 15 | 15 |
| 16 class AttachmentDownloader; | 16 class AttachmentDownloader; |
| 17 class AttachmentStore; | |
| 18 class AttachmentStoreForSync; | 17 class AttachmentStoreForSync; |
| 19 class AttachmentUploader; | 18 class AttachmentUploader; |
| 20 class SyncData; | 19 class SyncData; |
| 21 | 20 |
| 22 // AttachmentService is responsible for managing a model type's attachments. | 21 // AttachmentService is responsible for managing a model type's attachments. |
| 23 // | 22 // |
| 24 // Outside of sync code, AttachmentService shouldn't be used directly. Instead | 23 // Outside of sync code, AttachmentService shouldn't be used directly. Instead |
| 25 // use the functionality provided by SyncData and SyncChangeProcessor. | 24 // use the functionality provided by SyncData and SyncChangeProcessor. |
| 26 // | 25 // |
| 27 // Destroying this object does not necessarily cancel outstanding async | 26 // Destroying this object does not necessarily cancel outstanding async |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // | 79 // |
| 81 // A request to upload attachments does not persist across restarts of Chrome. | 80 // A request to upload attachments does not persist across restarts of Chrome. |
| 82 // | 81 // |
| 83 // Invokes OnAttachmentUploaded on the Delegate (if provided). | 82 // Invokes OnAttachmentUploaded on the Delegate (if provided). |
| 84 virtual void UploadAttachments(const AttachmentIdList& attachment_ids) = 0; | 83 virtual void UploadAttachments(const AttachmentIdList& attachment_ids) = 0; |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 } // namespace syncer | 86 } // namespace syncer |
| 88 | 87 |
| 89 #endif // COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ | 88 #endif // COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| OLD | NEW |