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 #include "components/sync/core/attachments/attachment_downloader_impl.h" | 5 #include "components/sync/engine_impl/attachments/attachment_downloader_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/metrics/sparse_histogram.h" | 14 #include "base/metrics/sparse_histogram.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/sys_byteorder.h" | 16 #include "base/sys_byteorder.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "components/sync/core/attachments/attachment_uploader_impl.h" | 19 #include "components/sync/engine/attachments/attachment_util.h" |
20 #include "components/sync/core/attachments/attachment_util.h" | 20 #include "components/sync/engine_impl/attachments/attachment_uploader_impl.h" |
21 #include "components/sync/protocol/sync.pb.h" | 21 #include "components/sync/protocol/sync.pb.h" |
22 #include "net/base/load_flags.h" | 22 #include "net/base/load_flags.h" |
23 #include "net/http/http_response_headers.h" | 23 #include "net/http/http_response_headers.h" |
24 #include "net/http/http_status_code.h" | 24 #include "net/http/http_status_code.h" |
25 #include "net/http/http_util.h" | 25 #include "net/http/http_util.h" |
26 #include "net/url_request/url_fetcher.h" | 26 #include "net/url_request/url_fetcher.h" |
27 #include "net/url_request/url_request_status.h" | 27 #include "net/url_request/url_request_status.h" |
28 | 28 |
29 namespace syncer { | 29 namespace syncer { |
30 | 30 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 282 |
283 if (crc32c_raw.size() != sizeof(*crc32c)) | 283 if (crc32c_raw.size() != sizeof(*crc32c)) |
284 return false; | 284 return false; |
285 | 285 |
286 *crc32c = | 286 *crc32c = |
287 base::NetToHost32(*reinterpret_cast<const uint32_t*>(crc32c_raw.c_str())); | 287 base::NetToHost32(*reinterpret_cast<const uint32_t*>(crc32c_raw.c_str())); |
288 return true; | 288 return true; |
289 } | 289 } |
290 | 290 |
291 } // namespace syncer | 291 } // namespace syncer |
OLD | NEW |