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

Side by Side Diff: net/disk_cache/blockfile/rankings.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
« no previous file with comments | « net/disk_cache/blockfile/rankings.h ('k') | net/disk_cache/blockfile/sparse_control.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/blockfile/rankings.h" 5 #include "net/disk_cache/blockfile/rankings.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/macros.h"
11 #include "net/disk_cache/blockfile/backend_impl.h" 12 #include "net/disk_cache/blockfile/backend_impl.h"
12 #include "net/disk_cache/blockfile/disk_format.h" 13 #include "net/disk_cache/blockfile/disk_format.h"
13 #include "net/disk_cache/blockfile/entry_impl.h" 14 #include "net/disk_cache/blockfile/entry_impl.h"
14 #include "net/disk_cache/blockfile/errors.h" 15 #include "net/disk_cache/blockfile/errors.h"
15 #include "net/disk_cache/blockfile/histogram_macros.h" 16 #include "net/disk_cache/blockfile/histogram_macros.h"
16 #include "net/disk_cache/blockfile/stress_support.h" 17 #include "net/disk_cache/blockfile/stress_support.h"
17 18
18 // Provide a BackendImpl object to macros from histogram_macros.h. 19 // Provide a BackendImpl object to macros from histogram_macros.h.
19 #define CACHE_UMA_BACKEND_IMPL_OBJ backend_ 20 #define CACHE_UMA_BACKEND_IMPL_OBJ backend_
20 21
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 void Rankings::DecrementCounter(List list) { 920 void Rankings::DecrementCounter(List list) {
920 if (!count_lists_) 921 if (!count_lists_)
921 return; 922 return;
922 923
923 DCHECK(control_data_->sizes[list] > 0); 924 DCHECK(control_data_->sizes[list] > 0);
924 if (control_data_->sizes[list] > 0) 925 if (control_data_->sizes[list] > 0)
925 control_data_->sizes[list]--; 926 control_data_->sizes[list]--;
926 } 927 }
927 928
928 } // namespace disk_cache 929 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/rankings.h ('k') | net/disk_cache/blockfile/sparse_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698