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 #include "components/sync/api/attachments/attachment_service.h" | 5 #include "components/sync/model/attachments/attachment_service.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "components/sync/api/attachments/attachment_store.h" | |
11 #include "components/sync/api_impl/attachments/attachment_service_impl.h" | |
12 #include "components/sync/engine/attachments/fake_attachment_downloader.h" | 10 #include "components/sync/engine/attachments/fake_attachment_downloader.h" |
13 #include "components/sync/engine/attachments/fake_attachment_uploader.h" | 11 #include "components/sync/engine/attachments/fake_attachment_uploader.h" |
| 12 #include "components/sync/model/attachments/attachment_store.h" |
| 13 #include "components/sync/model_impl/attachments/attachment_service_impl.h" |
14 | 14 |
15 namespace syncer { | 15 namespace syncer { |
16 | 16 |
17 // static | 17 // static |
18 std::unique_ptr<AttachmentService> AttachmentService::Create( | 18 std::unique_ptr<AttachmentService> AttachmentService::Create( |
19 std::unique_ptr<AttachmentStoreForSync> attachment_store, | 19 std::unique_ptr<AttachmentStoreForSync> attachment_store, |
20 std::unique_ptr<AttachmentUploader> attachment_uploader, | 20 std::unique_ptr<AttachmentUploader> attachment_uploader, |
21 std::unique_ptr<AttachmentDownloader> attachment_downloader, | 21 std::unique_ptr<AttachmentDownloader> attachment_downloader, |
22 Delegate* delegate, | 22 Delegate* delegate, |
23 const base::TimeDelta& initial_backoff_delay, | 23 const base::TimeDelta& initial_backoff_delay, |
(...skipping 11 matching lines...) Expand all Loading... |
35 return base::MakeUnique<AttachmentServiceImpl>( | 35 return base::MakeUnique<AttachmentServiceImpl>( |
36 attachment_store->CreateAttachmentStoreForSync(), | 36 attachment_store->CreateAttachmentStoreForSync(), |
37 base::MakeUnique<FakeAttachmentUploader>(), | 37 base::MakeUnique<FakeAttachmentUploader>(), |
38 base::MakeUnique<FakeAttachmentDownloader>(), nullptr, base::TimeDelta(), | 38 base::MakeUnique<FakeAttachmentDownloader>(), nullptr, base::TimeDelta(), |
39 base::TimeDelta()); | 39 base::TimeDelta()); |
40 } | 40 } |
41 | 41 |
42 AttachmentService::~AttachmentService() {} | 42 AttachmentService::~AttachmentService() {} |
43 | 43 |
44 } // namespace syncer | 44 } // namespace syncer |
OLD | NEW |