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

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

Issue 296153014: AttachmentDownloader implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | sync/internal_api/attachments/attachment_downloader_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h"
6
7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h"
9
10 namespace syncer {
11
12 AttachmentDownloaderImpl::AttachmentDownloaderImpl() {
13 }
14
15 AttachmentDownloaderImpl::~AttachmentDownloaderImpl() {
16 DCHECK(CalledOnValidThread());
17 }
18
19 void AttachmentDownloaderImpl::DownloadAttachment(
20 const AttachmentId& attachment_id,
21 const DownloadCallback& callback) {
22 DCHECK(CalledOnValidThread());
23 // No real implementation yet. Fail every request with
24 // DOWNLOAD_UNSPECIFIED_ERROR.
25 scoped_ptr<Attachment> attachment;
26 base::MessageLoop::current()->PostTask(
27 FROM_HERE,
28 base::Bind(
29 callback, DOWNLOAD_UNSPECIFIED_ERROR, base::Passed(&attachment)));
30 }
31
32 } // namespace syncer
OLDNEW
« no previous file with comments | « no previous file | sync/internal_api/attachments/attachment_downloader_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698