| 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 SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_STORE_H_ |
| 6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_STORE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "sync/api/attachments/attachment.h" | 11 #include "sync/api/attachments/attachment.h" |
| 12 #include "sync/api/attachments/attachment_id.h" | 12 #include "sync/api/attachments/attachment_id.h" |
| 13 #include "sync/base/sync_export.h" | 13 #include "sync/base/sync_export.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class RefCountedMemory; | 16 class RefCountedMemory; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // that does not exist is not an error. If any of the existing attachment | 79 // that does not exist is not an error. If any of the existing attachment |
| 80 // could not be dropped, |callback|'s Result will be UNSPECIFIED_ERROR. When | 80 // could not be dropped, |callback|'s Result will be UNSPECIFIED_ERROR. When |
| 81 // this happens, some or none of the attachments may have been dropped | 81 // this happens, some or none of the attachments may have been dropped |
| 82 // successfully. | 82 // successfully. |
| 83 virtual void Drop(const AttachmentIdList& ids, | 83 virtual void Drop(const AttachmentIdList& ids, |
| 84 const DropCallback& callback) = 0; | 84 const DropCallback& callback) = 0; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace syncer | 87 } // namespace syncer |
| 88 | 88 |
| 89 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_H_ | 89 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_STORE_H_ |
| OLD | NEW |