| 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_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ |
| 6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ | 6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 AttachmentServiceImpl( | 54 AttachmentServiceImpl( |
| 55 std::unique_ptr<AttachmentStoreForSync> attachment_store, | 55 std::unique_ptr<AttachmentStoreForSync> attachment_store, |
| 56 std::unique_ptr<AttachmentUploader> attachment_uploader, | 56 std::unique_ptr<AttachmentUploader> attachment_uploader, |
| 57 std::unique_ptr<AttachmentDownloader> attachment_downloader, | 57 std::unique_ptr<AttachmentDownloader> attachment_downloader, |
| 58 Delegate* delegate, | 58 Delegate* delegate, |
| 59 const base::TimeDelta& initial_backoff_delay, | 59 const base::TimeDelta& initial_backoff_delay, |
| 60 const base::TimeDelta& max_backoff_delay); | 60 const base::TimeDelta& max_backoff_delay); |
| 61 ~AttachmentServiceImpl() override; | 61 ~AttachmentServiceImpl() override; |
| 62 | 62 |
| 63 // Create an AttachmentServiceImpl suitable for use in tests. | 63 // Create an AttachmentServiceImpl suitable for use in tests. |
| 64 static std::unique_ptr<syncer::AttachmentService> CreateForTest(); | 64 static std::unique_ptr<AttachmentService> CreateForTest(); |
| 65 | 65 |
| 66 // AttachmentService implementation. | 66 // AttachmentService implementation. |
| 67 void GetOrDownloadAttachments(const AttachmentIdList& attachment_ids, | 67 void GetOrDownloadAttachments(const AttachmentIdList& attachment_ids, |
| 68 const GetOrDownloadCallback& callback) override; | 68 const GetOrDownloadCallback& callback) override; |
| 69 void UploadAttachments(const AttachmentIdList& attachment_ids) override; | 69 void UploadAttachments(const AttachmentIdList& attachment_ids) override; |
| 70 | 70 |
| 71 // NetworkChangeObserver implementation. | 71 // NetworkChangeObserver implementation. |
| 72 void OnNetworkChanged( | 72 void OnNetworkChanged( |
| 73 net::NetworkChangeNotifier::ConnectionType type) override; | 73 net::NetworkChangeNotifier::ConnectionType type) override; |
| 74 | 74 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Must be last data member. | 115 // Must be last data member. |
| 116 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_; | 116 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl); | 118 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace syncer | 121 } // namespace syncer |
| 122 | 122 |
| 123 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ | 123 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ |
| OLD | NEW |