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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
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.h"
6
7 #include <string>
8
9 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h"
10
11 namespace syncer {
12
13 AttachmentDownloader::~AttachmentDownloader() {
14 }
15
16 // Factory function for creating AttachmentDownloaderImpl.
17 // It is introduced to avoid SYNC_EXPORT-ing AttachmentDownloaderImpl since it
18 // inherits from OAuth2TokenService::Consumer which is not exported.
19 std::unique_ptr<AttachmentDownloader> AttachmentDownloader::Create(
20 const GURL& sync_service_url,
21 const scoped_refptr<net::URLRequestContextGetter>&
22 url_request_context_getter,
23 const std::string& account_id,
24 const OAuth2TokenService::ScopeSet scopes,
25 const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>&
26 token_service_provider,
27 const std::string& store_birthday,
28 ModelType model_type) {
29 return std::unique_ptr<AttachmentDownloader>(new AttachmentDownloaderImpl(
30 sync_service_url, url_request_context_getter, account_id, scopes,
31 token_service_provider, store_birthday, model_type));
32 }
33
34 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/attachments/DEPS ('k') | sync/internal_api/attachments/attachment_downloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698