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 "sync/internal_api/public/attachments/attachment_service_impl.h" | 5 #include "sync/internal_api/public/attachments/attachment_service_impl.h" |
6 | 6 |
7 #include <iterator> | 7 #include <iterator> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
13 #include "sync/api/attachments/attachment.h" | 14 #include "sync/api/attachments/attachment.h" |
14 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h" | 15 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h" |
15 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" | 16 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" |
16 | 17 |
17 namespace syncer { | 18 namespace syncer { |
18 | 19 |
19 // GetOrDownloadAttachments starts multiple parallel DownloadAttachment calls. | 20 // GetOrDownloadAttachments starts multiple parallel DownloadAttachment calls. |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 base::Bind(&AttachmentServiceImpl::UploadDone, | 324 base::Bind(&AttachmentServiceImpl::UploadDone, |
324 weak_ptr_factory_.GetWeakPtr())); | 325 weak_ptr_factory_.GetWeakPtr())); |
325 } | 326 } |
326 } | 327 } |
327 | 328 |
328 void AttachmentServiceImpl::SetTimerForTest(scoped_ptr<base::Timer> timer) { | 329 void AttachmentServiceImpl::SetTimerForTest(scoped_ptr<base::Timer> timer) { |
329 upload_task_queue_->SetTimerForTest(timer.Pass()); | 330 upload_task_queue_->SetTimerForTest(timer.Pass()); |
330 } | 331 } |
331 | 332 |
332 } // namespace syncer | 333 } // namespace syncer |
OLD | NEW |