OLD | NEW |
| (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 | |
OLD | NEW |