| OLD | NEW |
| 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 #ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
| 9 #include "base/threading/non_thread_safe.h" | 9 #include "base/threading/non_thread_safe.h" |
| 10 #include "google_apis/gaia/oauth2_token_service_request.h" | 10 #include "google_apis/gaia/oauth2_token_service_request.h" |
| 11 #include "net/url_request/url_fetcher_delegate.h" | 11 #include "net/url_request/url_fetcher_delegate.h" |
| 12 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
| 13 #include "sync/api/attachments/attachment_downloader.h" | 13 #include "sync/internal_api/public/attachments/attachment_downloader.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace syncer { | 16 namespace syncer { |
| 17 | 17 |
| 18 // An implementation of AttachmentDownloader. | 18 // An implementation of AttachmentDownloader. |
| 19 class AttachmentDownloaderImpl : public AttachmentDownloader, | 19 class AttachmentDownloaderImpl : public AttachmentDownloader, |
| 20 public OAuth2TokenService::Consumer, | 20 public OAuth2TokenService::Consumer, |
| 21 public net::URLFetcherDelegate, | 21 public net::URLFetcherDelegate, |
| 22 public base::NonThreadSafe { | 22 public base::NonThreadSafe { |
| 23 public: | 23 public: |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // objects while access token request is pending. It doesn't control objects' | 82 // objects while access token request is pending. It doesn't control objects' |
| 83 // lifetime. | 83 // lifetime. |
| 84 StateList requests_waiting_for_access_token_; | 84 StateList requests_waiting_for_access_token_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl); | 86 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace syncer | 89 } // namespace syncer |
| 90 | 90 |
| 91 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ | 91 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ |
| OLD | NEW |