Index: sync/internal_api/public/attachments/attachment_downloader_impl.h |
diff --git a/sync/internal_api/public/attachments/attachment_downloader_impl.h b/sync/internal_api/public/attachments/attachment_downloader_impl.h |
index 3a125c07153e9d0f58dbcd5473f4bb6c7716605d..e3fee399e95ff63045df10ea93a7ccb260c01ce7 100644 |
--- a/sync/internal_api/public/attachments/attachment_downloader_impl.h |
+++ b/sync/internal_api/public/attachments/attachment_downloader_impl.h |
@@ -11,7 +11,6 @@ |
#include "net/url_request/url_fetcher_delegate.h" |
#include "net/url_request/url_request_context_getter.h" |
#include "sync/api/attachments/attachment_downloader.h" |
-#include "url/gurl.h" |
namespace syncer { |
@@ -21,7 +20,8 @@ |
public net::URLFetcherDelegate, |
public base::NonThreadSafe { |
public: |
- // |sync_service_url| is the URL of the sync service. |
+ // |url_prefix| is the URL prefix (including trailing slash) to be used when |
+ // downloading attachments. |
// |
// |url_request_context_getter| provides a URLRequestContext. |
// |
@@ -31,7 +31,7 @@ |
// |
// |token_service_provider| provides an OAuth2 token service. |
AttachmentDownloaderImpl( |
- const GURL& sync_service_url, |
+ const std::string& url_prefix, |
const scoped_refptr<net::URLRequestContextGetter>& |
url_request_context_getter, |
const std::string& account_id, |
@@ -60,6 +60,7 @@ |
typedef base::ScopedPtrHashMap<AttachmentUrl, DownloadState> StateMap; |
typedef std::vector<DownloadState*> StateList; |
+ AttachmentUrl GetAttachmentUrl(const AttachmentId& attachment_id); |
scoped_ptr<net::URLFetcher> CreateFetcher(const AttachmentUrl& url, |
const std::string& access_token); |
void RequestAccessToken(DownloadState* download_state); |
@@ -68,7 +69,7 @@ |
const DownloadResult& result, |
const scoped_refptr<base::RefCountedString>& attachment_data); |
- GURL sync_service_url_; |
+ std::string url_prefix_; |
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
std::string account_id_; |