Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: net/disk_cache/simple/simple_synchronous_entry.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
13 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
14 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
15 #include "base/hash.h" 14 #include "base/hash.h"
16 #include "base/location.h" 15 #include "base/location.h"
17 #include "base/metrics/histogram_macros.h" 16 #include "base/metrics/histogram_macros.h"
18 #include "base/numerics/safe_conversions.h" 17 #include "base/numerics/safe_conversions.h"
19 #include "base/sha1.h" 18 #include "base/sha1.h"
20 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
21 #include "base/timer/elapsed_timer.h" 20 #include "base/timer/elapsed_timer.h"
22 #include "net/base/io_buffer.h" 21 #include "net/base/io_buffer.h"
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 range.offset = offset; 1429 range.offset = offset;
1431 range.length = len; 1430 range.length = len;
1432 range.data_crc32 = data_crc32; 1431 range.data_crc32 = data_crc32;
1433 range.file_offset = data_file_offset; 1432 range.file_offset = data_file_offset;
1434 sparse_ranges_.insert(std::make_pair(offset, range)); 1433 sparse_ranges_.insert(std::make_pair(offset, range));
1435 1434
1436 return true; 1435 return true;
1437 } 1436 }
1438 1437
1439 } // namespace disk_cache 1438 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_index_unittest.cc ('k') | net/disk_cache/simple/simple_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698