| 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_API_ATTACHMENTS_ATTACHMENT_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_API_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/api/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; | 17 class AttachmentStore; |
| 18 class AttachmentStoreForSync; | 18 class AttachmentStoreForSync; |
| 19 class AttachmentUploader; | 19 class AttachmentUploader; |
| 20 class SyncData; | 20 class SyncData; |
| 21 | 21 |
| 22 // AttachmentService is responsible for managing a model type's attachments. | 22 // AttachmentService is responsible for managing a model type's attachments. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // automatically retried if transient errors occur. | 79 // automatically retried if transient errors occur. |
| 80 // | 80 // |
| 81 // A request to upload attachments does not persist across restarts of Chrome. | 81 // A request to upload attachments does not persist across restarts of Chrome. |
| 82 // | 82 // |
| 83 // Invokes OnAttachmentUploaded on the Delegate (if provided). | 83 // Invokes OnAttachmentUploaded on the Delegate (if provided). |
| 84 virtual void UploadAttachments(const AttachmentIdList& attachment_ids) = 0; | 84 virtual void UploadAttachments(const AttachmentIdList& attachment_ids) = 0; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace syncer | 87 } // namespace syncer |
| 88 | 88 |
| 89 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_H_ | 89 #endif // COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| OLD | NEW |