OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "net/disk_cache/simple/simple_synchronous_entry.h" | 5 #include "net/disk_cache/simple/simple_synchronous_entry.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstring> | 8 #include <cstring> |
9 #include <functional> | 9 #include <functional> |
10 #include <limits> | 10 #include <limits> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/hash.h" | 15 #include "base/hash.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/sha1.h" | 17 #include "base/sha1.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "net/disk_cache/simple/simple_backend_version.h" | 21 #include "net/disk_cache/simple/simple_backend_version.h" |
22 #include "net/disk_cache/simple/simple_histogram_macros.h" | 22 #include "net/disk_cache/simple/simple_histogram_macros.h" |
23 #include "net/disk_cache/simple/simple_util.h" | 23 #include "net/disk_cache/simple/simple_util.h" |
24 #include "third_party/zlib/zlib.h" | 24 #include "third_party/zlib/zlib.h" |
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1425 range.offset = offset; | 1425 range.offset = offset; |
1426 range.length = len; | 1426 range.length = len; |
1427 range.data_crc32 = data_crc32; | 1427 range.data_crc32 = data_crc32; |
1428 range.file_offset = data_file_offset; | 1428 range.file_offset = data_file_offset; |
1429 sparse_ranges_.insert(std::make_pair(offset, range)); | 1429 sparse_ranges_.insert(std::make_pair(offset, range)); |
1430 | 1430 |
1431 return true; | 1431 return true; |
1432 } | 1432 } |
1433 | 1433 |
1434 } // namespace disk_cache | 1434 } // namespace disk_cache |
OLD | NEW |