| 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_SERVICE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| 6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "sync/api/attachments/attachment.h" | 12 #include "sync/api/attachments/attachment.h" |
| 13 #include "sync/base/sync_export.h" | 13 #include "sync/base/sync_export.h" |
| 14 | 14 |
| 15 namespace syncer { | 15 namespace syncer { |
| 16 | 16 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Store |attachments| on device and (eventually) upload them to the server. | 82 // Store |attachments| on device and (eventually) upload them to the server. |
| 83 // | 83 // |
| 84 // Invokes |callback| once the attachments have been written to device | 84 // Invokes |callback| once the attachments have been written to device |
| 85 // storage. | 85 // storage. |
| 86 virtual void StoreAttachments(const AttachmentList& attachments, | 86 virtual void StoreAttachments(const AttachmentList& attachments, |
| 87 const StoreCallback& callback) = 0; | 87 const StoreCallback& callback) = 0; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace syncer | 90 } // namespace syncer |
| 91 | 91 |
| 92 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_H_ | 92 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_H_ |
| OLD | NEW |