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

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

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698