Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sync/internal_api/attachments/attachment_service_impl.cc

Issue 1969833002: Fix include path for moved thread_task_runner_handle.h header in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "sync/api/attachments/attachment.h" 15 #include "sync/api/attachments/attachment.h"
16 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h" 16 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h"
17 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" 17 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 // GetOrDownloadAttachments starts multiple parallel DownloadAttachment calls. 21 // GetOrDownloadAttachments starts multiple parallel DownloadAttachment calls.
22 // GetOrDownloadState tracks completion of these calls and posts callback for 22 // GetOrDownloadState tracks completion of these calls and posts callback for
23 // consumer once all attachments are either retrieved or reported unavailable. 23 // consumer once all attachments are either retrieved or reported unavailable.
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 weak_ptr_factory_.GetWeakPtr())); 327 weak_ptr_factory_.GetWeakPtr()));
328 } 328 }
329 } 329 }
330 330
331 void AttachmentServiceImpl::SetTimerForTest( 331 void AttachmentServiceImpl::SetTimerForTest(
332 std::unique_ptr<base::Timer> timer) { 332 std::unique_ptr<base::Timer> timer) {
333 upload_task_queue_->SetTimerForTest(std::move(timer)); 333 upload_task_queue_->SetTimerForTest(std::move(timer));
334 } 334 }
335 335
336 } // namespace syncer 336 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698