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

Side by Side Diff: sync/api/attachments/attachment_downloader.cc

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « sync/api/attachments/attachment_downloader.h ('k') | sync/api/attachments/attachment_service.h » ('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/api/attachments/attachment_downloader.h"
6
7 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h"
8
9 namespace syncer {
10
11 AttachmentDownloader::~AttachmentDownloader() {
12 }
13
14 // Factory function for creating AttachmentDownloaderImpl.
15 // It is introduced to avoid SYNC_EXPORT-ing AttachmentDownloaderImpl since it
16 // inherits from OAuth2TokenService::Consumer which is not exported.
17 scoped_ptr<AttachmentDownloader> AttachmentDownloader::Create(
18 const GURL& sync_service_url,
19 const scoped_refptr<net::URLRequestContextGetter>&
20 url_request_context_getter,
21 const std::string& account_id,
22 const OAuth2TokenService::ScopeSet scopes,
23 scoped_ptr<OAuth2TokenServiceRequest::TokenServiceProvider>
24 token_service_provider) {
25 return scoped_ptr<AttachmentDownloader>(
26 new AttachmentDownloaderImpl(sync_service_url,
27 url_request_context_getter,
28 account_id,
29 scopes,
30 token_service_provider.Pass()));
31 }
32
33 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/api/attachments/attachment_downloader.h ('k') | sync/api/attachments/attachment_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698