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_IMPL_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ |
6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
11 #include "sync/api/attachments/attachment_downloader.h" | |
12 #include "sync/api/attachments/attachment_service.h" | |
13 #include "sync/api/attachments/attachment_service_proxy.h" | |
14 #include "sync/api/attachments/attachment_store.h" | 11 #include "sync/api/attachments/attachment_store.h" |
15 #include "sync/api/attachments/attachment_uploader.h" | 12 #include "sync/internal_api/public/attachments/attachment_downloader.h" |
| 13 #include "sync/internal_api/public/attachments/attachment_service.h" |
| 14 #include "sync/internal_api/public/attachments/attachment_service_proxy.h" |
| 15 #include "sync/internal_api/public/attachments/attachment_uploader.h" |
16 | 16 |
17 namespace syncer { | 17 namespace syncer { |
18 | 18 |
19 // Implementation of AttachmentService. | 19 // Implementation of AttachmentService. |
20 class SYNC_EXPORT AttachmentServiceImpl : public AttachmentService, | 20 class SYNC_EXPORT AttachmentServiceImpl : public AttachmentService, |
21 public base::NonThreadSafe { | 21 public base::NonThreadSafe { |
22 public: | 22 public: |
23 // |delegate| is optional delegate for AttachmentService to notify about | 23 // |delegate| is optional delegate for AttachmentService to notify about |
24 // asynchronous events (AttachmentUploaded). Pass NULL if delegate is not | 24 // asynchronous events (AttachmentUploaded). Pass NULL if delegate is not |
25 // provided. AttachmentService doesn't take ownership of delegate, the pointer | 25 // provided. AttachmentService doesn't take ownership of delegate, the pointer |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 Delegate* delegate_; | 81 Delegate* delegate_; |
82 | 82 |
83 // Must be last data member. | 83 // Must be last data member. |
84 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_; | 84 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl); | 86 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace syncer | 89 } // namespace syncer |
90 | 90 |
91 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ | 91 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ |
OLD | NEW |