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 "sync/internal_api/public/attachments/attachment_downloader_impl.h" | 5 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/base64.h" | 9 #include "base/base64.h" |
8 #include "base/bind.h" | 10 #include "base/bind.h" |
9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
10 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
11 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
12 #include "base/metrics/sparse_histogram.h" | 14 #include "base/metrics/sparse_histogram.h" |
13 #include "base/sys_byteorder.h" | 15 #include "base/sys_byteorder.h" |
14 #include "base/time/time.h" | 16 #include "base/time/time.h" |
15 #include "net/base/load_flags.h" | 17 #include "net/base/load_flags.h" |
16 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 279 |
278 if (crc32c_raw.size() != sizeof(*crc32c)) | 280 if (crc32c_raw.size() != sizeof(*crc32c)) |
279 return false; | 281 return false; |
280 | 282 |
281 *crc32c = | 283 *crc32c = |
282 base::NetToHost32(*reinterpret_cast<const uint32_t*>(crc32c_raw.c_str())); | 284 base::NetToHost32(*reinterpret_cast<const uint32_t*>(crc32c_raw.c_str())); |
283 return true; | 285 return true; |
284 } | 286 } |
285 | 287 |
286 } // namespace syncer | 288 } // namespace syncer |
OLD | NEW |