| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BACKEND_H_ | 5 #ifndef COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_BACKEND_H_ |
| 6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_BACKEND_H_ | 6 #define COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_BACKEND_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "sync/api/attachments/attachment.h" | 11 #include "components/sync/api/attachments/attachment.h" |
| 12 #include "sync/api/attachments/attachment_id.h" | 12 #include "components/sync/api/attachments/attachment_id.h" |
| 13 #include "sync/api/attachments/attachment_store.h" | 13 #include "components/sync/api/attachments/attachment_store.h" |
| 14 #include "sync/base/sync_export.h" | 14 #include "components/sync/base/sync_export.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
| 18 } // namespace base | 18 } // namespace base |
| 19 | 19 |
| 20 namespace syncer { | 20 namespace syncer { |
| 21 | 21 |
| 22 // Interface for AttachmentStore backends. | 22 // Interface for AttachmentStore backends. |
| 23 // | 23 // |
| 24 // AttachmentStoreBackend provides interface for different backends (on-disk, | 24 // AttachmentStoreBackend provides interface for different backends (on-disk, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void PostCallback(const base::Closure& callback); | 59 void PostCallback(const base::Closure& callback); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 scoped_refptr<base::SequencedTaskRunner> callback_task_runner_; | 62 scoped_refptr<base::SequencedTaskRunner> callback_task_runner_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(AttachmentStoreBackend); | 64 DISALLOW_COPY_AND_ASSIGN(AttachmentStoreBackend); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace syncer | 67 } // namespace syncer |
| 68 | 68 |
| 69 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_BACKEND_H_ | 69 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_BACKEND_H_ |
| OLD | NEW |