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

Side by Side Diff: components/sync/core_impl/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
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_downloader.h" 5 #include "components/sync/core/attachments/attachment_downloader.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h" 9 #include "components/sync/core/attachments/attachment_downloader_impl.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 AttachmentDownloader::~AttachmentDownloader() { 13 AttachmentDownloader::~AttachmentDownloader() {}
14 }
15 14
16 // Factory function for creating AttachmentDownloaderImpl. 15 // Factory function for creating AttachmentDownloaderImpl.
17 // It is introduced to avoid SYNC_EXPORT-ing AttachmentDownloaderImpl since it 16 // It is introduced to avoid SYNC_EXPORT-ing AttachmentDownloaderImpl since it
18 // inherits from OAuth2TokenService::Consumer which is not exported. 17 // inherits from OAuth2TokenService::Consumer which is not exported.
19 std::unique_ptr<AttachmentDownloader> AttachmentDownloader::Create( 18 std::unique_ptr<AttachmentDownloader> AttachmentDownloader::Create(
20 const GURL& sync_service_url, 19 const GURL& sync_service_url,
21 const scoped_refptr<net::URLRequestContextGetter>& 20 const scoped_refptr<net::URLRequestContextGetter>&
22 url_request_context_getter, 21 url_request_context_getter,
23 const std::string& account_id, 22 const std::string& account_id,
24 const OAuth2TokenService::ScopeSet scopes, 23 const OAuth2TokenService::ScopeSet scopes,
25 const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>& 24 const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>&
26 token_service_provider, 25 token_service_provider,
27 const std::string& store_birthday, 26 const std::string& store_birthday,
28 ModelType model_type) { 27 ModelType model_type) {
29 return std::unique_ptr<AttachmentDownloader>(new AttachmentDownloaderImpl( 28 return std::unique_ptr<AttachmentDownloader>(new AttachmentDownloaderImpl(
30 sync_service_url, url_request_context_getter, account_id, scopes, 29 sync_service_url, url_request_context_getter, account_id, scopes,
31 token_service_provider, store_birthday, model_type)); 30 token_service_provider, store_birthday, model_type));
32 } 31 }
33 32
34 } // namespace syncer 33 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core_impl/attachments/DEPS ('k') | components/sync/core_impl/attachments/attachment_downloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698