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 COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <unordered_map> | 12 #include <unordered_map> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/threading/non_thread_safe.h" | 17 #include "base/threading/non_thread_safe.h" |
18 #include "components/sync/base/model_type.h" | 18 #include "components/sync/base/model_type.h" |
19 #include "components/sync/engine/attachments/attachment_downloader.h" | 19 #include "components/sync/engine/attachments/attachment_downloader.h" |
20 #include "google_apis/gaia/oauth2_token_service_request.h" | 20 #include "google_apis/gaia/oauth2_token_service_request.h" |
21 #include "net/url_request/url_fetcher_delegate.h" | 21 #include "net/url_request/url_fetcher_delegate.h" |
22 #include "net/url_request/url_request_context_getter.h" | 22 #include "net/url_request/url_request_context_getter.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 namespace base { | |
26 class RefCountedMemory; | |
27 } // namespace base | |
28 | |
29 namespace net { | 25 namespace net { |
30 class HttpResponseHeaders; | 26 class HttpResponseHeaders; |
31 } // namespace net | 27 } // namespace net |
32 | 28 |
33 namespace syncer { | 29 namespace syncer { |
34 | 30 |
35 // An implementation of AttachmentDownloader. | 31 // An implementation of AttachmentDownloader. |
36 class AttachmentDownloaderImpl : public AttachmentDownloader, | 32 class AttachmentDownloaderImpl : public AttachmentDownloader, |
37 public OAuth2TokenService::Consumer, | 33 public OAuth2TokenService::Consumer, |
38 public net::URLFetcherDelegate, | 34 public net::URLFetcherDelegate, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 StateList requests_waiting_for_access_token_; | 121 StateList requests_waiting_for_access_token_; |
126 | 122 |
127 ModelType model_type_; | 123 ModelType model_type_; |
128 | 124 |
129 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl); | 125 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl); |
130 }; | 126 }; |
131 | 127 |
132 } // namespace syncer | 128 } // namespace syncer |
133 | 129 |
134 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ | 130 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ |
OLD | NEW |